| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 59 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; | 59 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; |
| 60 virtual void ShowCursor(bool show) OVERRIDE; | |
| 61 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 60 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
| 62 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 61 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 63 virtual void UnConfineCursor() OVERRIDE; | 62 virtual void UnConfineCursor() OVERRIDE; |
| 64 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 63 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 65 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 64 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 66 virtual bool GrabSnapshot( | 65 virtual bool GrabSnapshot( |
| 67 const gfx::Rect& snapshot_bounds, | 66 const gfx::Rect& snapshot_bounds, |
| 68 std::vector<unsigned char>* png_representation) OVERRIDE; | 67 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 69 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 68 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 70 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 69 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 91 | 90 |
| 92 // The native root window. | 91 // The native root window. |
| 93 ::Window x_root_window_; | 92 ::Window x_root_window_; |
| 94 | 93 |
| 95 // Current Aura cursor. | 94 // Current Aura cursor. |
| 96 gfx::NativeCursor current_cursor_; | 95 gfx::NativeCursor current_cursor_; |
| 97 | 96 |
| 98 // Is the window mapped to the screen? | 97 // Is the window mapped to the screen? |
| 99 bool window_mapped_; | 98 bool window_mapped_; |
| 100 | 99 |
| 101 // Is the cursor currently shown? | |
| 102 bool cursor_shown_; | |
| 103 | |
| 104 // The invisible cursor. | |
| 105 ::Cursor invisible_cursor_; | |
| 106 | |
| 107 // The bounds of |xwindow_|. | 100 // The bounds of |xwindow_|. |
| 108 gfx::Rect bounds_; | 101 gfx::Rect bounds_; |
| 109 | 102 |
| 110 // The bounds of |x_root_window_|. | 103 // The bounds of |x_root_window_|. |
| 111 gfx::Rect x_root_bounds_; | 104 gfx::Rect x_root_bounds_; |
| 112 | 105 |
| 113 // True if the window should be focused when the window is shown. | 106 // True if the window should be focused when the window is shown. |
| 114 bool focus_when_shown_; | 107 bool focus_when_shown_; |
| 115 | 108 |
| 116 scoped_array<XID> pointer_barriers_; | 109 scoped_array<XID> pointer_barriers_; |
| 117 | 110 |
| 118 scoped_ptr<ui::ViewProp> prop_; | 111 scoped_ptr<ui::ViewProp> prop_; |
| 119 | 112 |
| 120 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; | 113 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; |
| 121 | 114 |
| 122 ui::X11AtomCache atom_cache_; | 115 ui::X11AtomCache atom_cache_; |
| 123 | 116 |
| 124 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 117 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 125 }; | 118 }; |
| 126 | 119 |
| 127 } // namespace aura | 120 } // namespace aura |
| 128 | 121 |
| 129 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 122 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |