~azzar1/unity/fix-1028810

« back to all changes in this revision

Viewing changes to tests/test-gestures/GesturalWindowSwitcherMock.h

  • Committer: Andrea Azzarone
  • Date: 2012-08-22 13:14:18 UTC
  • mfrom: (2516.1.92 unity)
  • Revision ID: azzaronea@gmail.com-20120822131418-mrfwx82k39xnvl9e
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012 Canonical Ltd
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License version 3 as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef GESTURAL_WINDOW_SWITCHER_MOCK_H
 
20
#define GESTURAL_WINDOW_SWITCHER_MOCK_H
 
21
 
 
22
#include <Nux/Gesture.h>
 
23
 
 
24
namespace unity
 
25
{
 
26
 
 
27
class GesturalWindowSwitcherMock : public nux::GestureTarget
 
28
{
 
29
  public:
 
30
    GesturalWindowSwitcherMock() {}
 
31
 
 
32
    virtual nux::GestureDeliveryRequest GestureEvent(const nux::GestureEvent &event)
 
33
    {
 
34
      return nux::GestureDeliveryRequest::NONE;
 
35
    }
 
36
};
 
37
typedef std::shared_ptr<GesturalWindowSwitcherMock> ShPtGesturalWindowSwitcherMock;
 
38
 
 
39
} //namespace unity
 
40
#endif // GESTURAL_WINDOW_SWITCHER_MOCK_H