| 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 24 matching lines...) Expand all Loading... |
| 35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 36 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 36 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 37 virtual void SetCapture() OVERRIDE; | 37 virtual void SetCapture() OVERRIDE; |
| 38 virtual void ReleaseCapture() OVERRIDE; | 38 virtual void ReleaseCapture() OVERRIDE; |
| 39 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; | 39 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; |
| 40 virtual void ShowCursor(bool show) OVERRIDE; | 40 virtual void ShowCursor(bool show) OVERRIDE; |
| 41 virtual gfx::Point QueryMouseLocation() OVERRIDE; | 41 virtual gfx::Point QueryMouseLocation() OVERRIDE; |
| 42 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 42 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 43 virtual void UnConfineCursor() OVERRIDE; | 43 virtual void UnConfineCursor() OVERRIDE; |
| 44 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 44 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 45 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 45 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 46 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 46 | 47 |
| 47 // Returns true if there's an X window manager present... in most cases. Some | 48 // Returns true if there's an X window manager present... in most cases. Some |
| 48 // window managers (notably, ion3) don't implement enough of ICCCM for us to | 49 // window managers (notably, ion3) don't implement enough of ICCCM for us to |
| 49 // detect that they're there. | 50 // detect that they're there. |
| 50 bool IsWindowManagerPresent(); | 51 bool IsWindowManagerPresent(); |
| 51 | 52 |
| 52 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 53 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
| 53 // |current_cursor_|. | 54 // |current_cursor_|. |
| 54 void SetCursorInternal(gfx::NativeCursor cursor); | 55 void SetCursorInternal(gfx::NativeCursor cursor); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 | 68 |
| 68 // Is the cursor currently shown? | 69 // Is the cursor currently shown? |
| 69 bool cursor_shown_; | 70 bool cursor_shown_; |
| 70 | 71 |
| 71 // The invisible cursor. | 72 // The invisible cursor. |
| 72 ::Cursor invisible_cursor_; | 73 ::Cursor invisible_cursor_; |
| 73 | 74 |
| 74 // The bounds of |xwindow_|. | 75 // The bounds of |xwindow_|. |
| 75 gfx::Rect bounds_; | 76 gfx::Rect bounds_; |
| 76 | 77 |
| 78 // True if the window should be focused when the window is shown. |
| 79 bool focus_when_shown_; |
| 80 |
| 77 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 81 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 78 }; | 82 }; |
| 79 | 83 |
| 80 } // namespace aura | 84 } // namespace aura |
| 81 | 85 |
| 82 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 86 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |