Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: ash/wm/maximize_mode/internal_input_device_list.h

Issue 313913004: Block internal PlatformEvents before they are dispatched in touchview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove obsolete comment and unnecessary includes. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/maximize_mode/internal_input_device_list_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
6 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_ 6 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/events/platform/platform_event_types.h"
10 11
11 namespace ui { 12 namespace ui {
12 class Event; 13 class Event;
bruthig 2014/06/04 19:16:04 Is this forward declaration needed any more?
13 } 14 }
14 15
15 namespace ash { 16 namespace ash {
16 17
17 // Identifies which input devices are internal and provides a helper function to 18 // Identifies which input devices are internal and provides a helper function to
18 // test if an input event came from an internal device. 19 // test if an input event came from an internal device.
19 class ASH_EXPORT InternalInputDeviceList { 20 class ASH_EXPORT InternalInputDeviceList {
20 public: 21 public:
21 InternalInputDeviceList() {} 22 InternalInputDeviceList() {}
22 virtual ~InternalInputDeviceList() {} 23 virtual ~InternalInputDeviceList() {}
23 24
24 virtual bool IsEventFromInternalDevice(const ui::Event* event) = 0; 25 virtual bool IsEventFromInternalDevice(const ui::PlatformEvent& event) = 0;
25 26
26 private: 27 private:
27 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceList); 28 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceList);
28 }; 29 };
29 30
30 } // namespace ash 31 } // namespace ash
31 32
32 #endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_ 33 #endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/maximize_mode/internal_input_device_list_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698