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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 49 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
50 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 50 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
51 virtual void UnConfineCursor() OVERRIDE; | 51 virtual void UnConfineCursor() OVERRIDE; |
52 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 52 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
53 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 53 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
54 virtual bool GrabSnapshot( | 54 virtual bool GrabSnapshot( |
55 const gfx::Rect& snapshot_bounds, | 55 const gfx::Rect& snapshot_bounds, |
56 std::vector<unsigned char>* png_representation) OVERRIDE; | 56 std::vector<unsigned char>* png_representation) OVERRIDE; |
57 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 57 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
58 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 58 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 59 virtual void PrepareForShutdown() OVERRIDE; |
59 | 60 |
60 // Returns true if there's an X window manager present... in most cases. Some | 61 // Returns true if there's an X window manager present... in most cases. Some |
61 // window managers (notably, ion3) don't implement enough of ICCCM for us to | 62 // window managers (notably, ion3) don't implement enough of ICCCM for us to |
62 // detect that they're there. | 63 // detect that they're there. |
63 bool IsWindowManagerPresent(); | 64 bool IsWindowManagerPresent(); |
64 | 65 |
65 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 66 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
66 // |current_cursor_|. | 67 // |current_cursor_|. |
67 void SetCursorInternal(gfx::NativeCursor cursor); | 68 void SetCursorInternal(gfx::NativeCursor cursor); |
68 | 69 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 scoped_ptr<ImageCursors> image_cursors_; | 105 scoped_ptr<ImageCursors> image_cursors_; |
105 | 106 |
106 X11AtomCache atom_cache_; | 107 X11AtomCache atom_cache_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 109 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace aura | 112 } // namespace aura |
112 | 113 |
113 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 114 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |