~azzar1/unity/fix-1036231

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Daniel d'Andrada
  • Date: 2012-08-20 14:59:10 UTC
  • mfrom: (2534.1.12 alt_tab_v2)
  • Revision ID: tarmac-20120820145910-y17ko481ufxhmmga
Multi-touch gestures for switching between windows (a.k.a. "alt-tab with gestures").

Approved by Tim Penhey.

The following gestural interactions with the window switcher have been implemented:

1. 3-fingers double tap -> switches to previous window

2. 3-fingers tap followed by 3-fingers hold -> shows window switcher
- drag those 3-fingers -> change selected window icon
- release fingers -> selects window and closes switcher

3. 3-fingers tap followed by 3-fingers hold -> shows window switcher
- release fingers -> switcher will kept being shown for some seconds still
- drag with one or three fingers -> change selected window
- release finger(s) -> selects window and closes switcher

4. 3-fingers tap followed by 3-fingers hold -> shows window switcher
- release fingers -> switcher will kept being shown for some seconds still
- tap on some window icon -> selects that icon and closes the switcher

Unit tests included.. Fixes: . Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  public:
12
12
    void GestureEvent(const GestureEvent &event)
13
13
    {
14
 
    }
 
14
    } 
 
15
};
 
16
 
 
17
class ViewMock : public InputAreaMock
 
18
{
 
19
  public:
 
20
    sigc::signal<void, int, int, unsigned long, unsigned long> mouse_down;
 
21
    sigc::signal<void, int, int, unsigned long, unsigned long> mouse_up;
 
22
    sigc::signal<void, int, int, int, int, unsigned long, unsigned long> mouse_drag;
15
23
};
16
24
 
17
25
} // namespace nux