| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 64 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 65 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 65 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 66 const gfx::Point& dest_offset, | 66 const gfx::Point& dest_offset, |
| 67 SkCanvas* canvas) OVERRIDE; | 67 SkCanvas* canvas) OVERRIDE; |
| 68 virtual bool GrabSnapshot( | 68 virtual bool GrabSnapshot( |
| 69 const gfx::Rect& snapshot_bounds, | 69 const gfx::Rect& snapshot_bounds, |
| 70 std::vector<unsigned char>* png_representation) OVERRIDE; | 70 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 71 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 71 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 72 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 72 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 73 virtual void PrepareForShutdown() OVERRIDE; | 73 virtual void PrepareForShutdown() OVERRIDE; |
| 74 virtual void SetHostWindowExpansion(const gfx::Rect& extra) OVERRIDE; |
| 74 | 75 |
| 75 // EnvObserver overrides. | 76 // EnvObserver overrides. |
| 76 virtual void OnWindowInitialized(Window* window) OVERRIDE; | 77 virtual void OnWindowInitialized(Window* window) OVERRIDE; |
| 77 virtual void OnRootWindowInitialized(RootWindow* root_window) OVERRIDE; | 78 virtual void OnRootWindowInitialized(RootWindow* root_window) OVERRIDE; |
| 78 private: | 79 private: |
| 79 class MouseMoveFilter; | 80 class MouseMoveFilter; |
| 80 | 81 |
| 81 bool DispatchEventForRootWindow(const base::NativeEvent& event); | 82 bool DispatchEventForRootWindow(const base::NativeEvent& event); |
| 82 | 83 |
| 83 // Dispatches XI2 events. Note that some events targetted for the X root | 84 // Dispatches XI2 events. Note that some events targetted for the X root |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 scoped_ptr<MouseMoveFilter> mouse_move_filter_; | 143 scoped_ptr<MouseMoveFilter> mouse_move_filter_; |
| 143 | 144 |
| 144 ui::X11AtomCache atom_cache_; | 145 ui::X11AtomCache atom_cache_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 147 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace aura | 150 } // namespace aura |
| 150 | 151 |
| 151 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 152 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |