| 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 #include <vector> | 10 #include <vector> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 59 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 60 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 60 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 61 const gfx::Point& dest_offset, | 61 const gfx::Point& dest_offset, |
| 62 SkCanvas* canvas) OVERRIDE; | 62 SkCanvas* canvas) OVERRIDE; |
| 63 virtual bool GrabSnapshot( | 63 virtual bool GrabSnapshot( |
| 64 const gfx::Rect& snapshot_bounds, | 64 const gfx::Rect& snapshot_bounds, |
| 65 std::vector<unsigned char>* png_representation) OVERRIDE; | 65 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 66 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 66 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 67 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 67 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 68 virtual void PrepareForShutdown() OVERRIDE; | 68 virtual void PrepareForShutdown() OVERRIDE; |
| 69 virtual void SetIntProperty(const std::string& name, int value) OVERRIDE; |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 class MouseMoveFilter; | 72 class MouseMoveFilter; |
| 72 | 73 |
| 73 bool DispatchEventForRootWindow(const base::NativeEvent& event); | 74 bool DispatchEventForRootWindow(const base::NativeEvent& event); |
| 74 | 75 |
| 75 // Dispatches XI2 events. Note that some events targetted for the X root | 76 // Dispatches XI2 events. Note that some events targetted for the X root |
| 76 // window are dispatched to the aura root window (e.g. touch events after | 77 // window are dispatched to the aura root window (e.g. touch events after |
| 77 // calibration). | 78 // calibration). |
| 78 void DispatchXI2Event(const base::NativeEvent& event); | 79 void DispatchXI2Event(const base::NativeEvent& event); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 scoped_ptr<MouseMoveFilter> mouse_move_filter_; | 126 scoped_ptr<MouseMoveFilter> mouse_move_filter_; |
| 126 | 127 |
| 127 ui::X11AtomCache atom_cache_; | 128 ui::X11AtomCache atom_cache_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 130 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace aura | 133 } // namespace aura |
| 133 | 134 |
| 134 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 135 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |