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 SetHostWindowProperty(const std::string& name, |
| 70 int value) OVERRIDE; |
69 | 71 |
70 private: | 72 private: |
71 class MouseMoveFilter; | 73 class MouseMoveFilter; |
72 | 74 |
73 bool DispatchEventForRootWindow(const base::NativeEvent& event); | 75 bool DispatchEventForRootWindow(const base::NativeEvent& event); |
74 | 76 |
75 // Dispatches XI2 events. Note that some events targetted for the X root | 77 // 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 | 78 // window are dispatched to the aura root window (e.g. touch events after |
77 // calibration). | 79 // calibration). |
78 void DispatchXI2Event(const base::NativeEvent& event); | 80 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_; | 127 scoped_ptr<MouseMoveFilter> mouse_move_filter_; |
126 | 128 |
127 ui::X11AtomCache atom_cache_; | 129 ui::X11AtomCache atom_cache_; |
128 | 130 |
129 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 131 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace aura | 134 } // namespace aura |
133 | 135 |
134 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 136 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |