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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void ShowCursor(bool show) OVERRIDE; | 47 virtual void ShowCursor(bool show) OVERRIDE; |
48 virtual gfx::Point QueryMouseLocation() OVERRIDE; | 48 virtual gfx::Point QueryMouseLocation() OVERRIDE; |
49 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 49 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
50 virtual void UnConfineCursor() OVERRIDE; | 50 virtual void UnConfineCursor() OVERRIDE; |
51 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 51 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
52 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 52 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
53 virtual bool GrabSnapshot( | 53 virtual bool GrabSnapshot( |
54 const gfx::Rect& snapshot_bounds, | 54 const gfx::Rect& snapshot_bounds, |
55 std::vector<unsigned char>* png_representation) OVERRIDE; | 55 std::vector<unsigned char>* png_representation) OVERRIDE; |
56 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 56 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 57 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
57 | 58 |
58 // Returns true if there's an X window manager present... in most cases. Some | 59 // Returns true if there's an X window manager present... in most cases. Some |
59 // window managers (notably, ion3) don't implement enough of ICCCM for us to | 60 // window managers (notably, ion3) don't implement enough of ICCCM for us to |
60 // detect that they're there. | 61 // detect that they're there. |
61 bool IsWindowManagerPresent(); | 62 bool IsWindowManagerPresent(); |
62 | 63 |
63 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 64 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
64 // |current_cursor_|. | 65 // |current_cursor_|. |
65 void SetCursorInternal(gfx::NativeCursor cursor); | 66 void SetCursorInternal(gfx::NativeCursor cursor); |
66 | 67 |
(...skipping 27 matching lines...) Expand all Loading... |
94 | 95 |
95 class ImageCursors; | 96 class ImageCursors; |
96 scoped_ptr<ImageCursors> image_cursors_; | 97 scoped_ptr<ImageCursors> image_cursors_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 99 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace aura | 102 } // namespace aura |
102 | 103 |
103 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 104 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |