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

Side by Side Diff: ui/aura/root_window_host_linux.h

Issue 11047012: Wiring metro mouse events to aura viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
(...skipping 12 matching lines...) Expand all
23 23
24 namespace aura { 24 namespace aura {
25 25
26 namespace internal { 26 namespace internal {
27 class TouchEventCalibrate; 27 class TouchEventCalibrate;
28 } 28 }
29 29
30 class RootWindowHostLinux : public RootWindowHost, 30 class RootWindowHostLinux : public RootWindowHost,
31 public MessageLoop::Dispatcher { 31 public MessageLoop::Dispatcher {
32 public: 32 public:
33 RootWindowHostLinux(RootWindowHostDelegate* delegate, 33 RootWindowHostLinux(const gfx::Rect& bounds);
34 const gfx::Rect& bounds);
35 virtual ~RootWindowHostLinux(); 34 virtual ~RootWindowHostLinux();
36 35
37 // Overridden from Dispatcher overrides: 36 // Overridden from Dispatcher overrides:
38 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 37 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
39 38
40 private: 39 private:
41 bool DispatchEventForRootWindow(const base::NativeEvent& event); 40 bool DispatchEventForRootWindow(const base::NativeEvent& event);
42 41
43 // Dispatches XI2 events. Note that some events targetted for the X root 42 // Dispatches XI2 events. Note that some events targetted for the X root
44 // window are dispatched to the aura root window (e.g. touch events after 43 // window are dispatched to the aura root window (e.g. touch events after
45 // calibration). 44 // calibration).
46 void DispatchXI2Event(const base::NativeEvent& event); 45 void DispatchXI2Event(const base::NativeEvent& event);
47 46
48 // RootWindowHost Overrides. 47 // RootWindowHost Overrides.
48 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE;
49 virtual RootWindow* GetRootWindow() OVERRIDE; 49 virtual RootWindow* GetRootWindow() OVERRIDE;
50 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 50 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
51 virtual void Show() OVERRIDE; 51 virtual void Show() OVERRIDE;
52 virtual void Hide() OVERRIDE; 52 virtual void Hide() OVERRIDE;
53 virtual void ToggleFullScreen() OVERRIDE; 53 virtual void ToggleFullScreen() OVERRIDE;
54 virtual gfx::Rect GetBounds() const OVERRIDE; 54 virtual gfx::Rect GetBounds() const OVERRIDE;
55 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 55 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
56 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 56 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
57 virtual void SetCapture() OVERRIDE; 57 virtual void SetCapture() OVERRIDE;
58 virtual void ReleaseCapture() OVERRIDE; 58 virtual void ReleaseCapture() OVERRIDE;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; 120 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_;
121 121
122 ui::X11AtomCache atom_cache_; 122 ui::X11AtomCache atom_cache_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 124 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
125 }; 125 };
126 126
127 } // namespace aura 127 } // namespace aura
128 128
129 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 129 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698