| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 public MessageLoop::Dispatcher { | 30 public MessageLoop::Dispatcher { |
| 31 public: | 31 public: |
| 32 RootWindowHostLinux(RootWindowHostDelegate* delegate, | 32 RootWindowHostLinux(RootWindowHostDelegate* delegate, |
| 33 const gfx::Rect& bounds); | 33 const gfx::Rect& bounds); |
| 34 virtual ~RootWindowHostLinux(); | 34 virtual ~RootWindowHostLinux(); |
| 35 | 35 |
| 36 // Overridden from Dispatcher overrides: | 36 // Overridden from Dispatcher overrides: |
| 37 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; | 37 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 bool DispatchEventForRootWindow(const base::NativeEvent& event); |
| 41 |
| 42 // Dispatches events of type GenericEvent. Note that some events targetted for |
| 43 // the X root window are dispatched to the aura root window (e.g. touch events |
| 44 // after calibration). |
| 45 void DispatchGenericEvent(const base::NativeEvent& event); |
| 46 |
| 40 // RootWindowHost Overrides. | 47 // RootWindowHost Overrides. |
| 41 virtual RootWindow* GetRootWindow() OVERRIDE; | 48 virtual RootWindow* GetRootWindow() OVERRIDE; |
| 42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 49 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 43 virtual void Show() OVERRIDE; | 50 virtual void Show() OVERRIDE; |
| 44 virtual void Hide() OVERRIDE; | 51 virtual void Hide() OVERRIDE; |
| 45 virtual void ToggleFullScreen() OVERRIDE; | 52 virtual void ToggleFullScreen() OVERRIDE; |
| 46 virtual gfx::Rect GetBounds() const OVERRIDE; | 53 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 47 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 54 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 48 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 55 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 49 virtual void SetCapture() OVERRIDE; | 56 virtual void SetCapture() OVERRIDE; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; | 115 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; |
| 109 | 116 |
| 110 ui::X11AtomCache atom_cache_; | 117 ui::X11AtomCache atom_cache_; |
| 111 | 118 |
| 112 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 119 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 113 }; | 120 }; |
| 114 | 121 |
| 115 } // namespace aura | 122 } // namespace aura |
| 116 | 123 |
| 117 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 124 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |