| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 44 virtual void SetCapture() OVERRIDE; | 44 virtual void SetCapture() OVERRIDE; |
| 45 virtual void ReleaseCapture() OVERRIDE; | 45 virtual void ReleaseCapture() OVERRIDE; |
| 46 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; | 46 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; |
| 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 GrabWindowSnapshot( |
| 54 std::vector<unsigned char>* png_representation, |
| 55 const gfx::Rect& snapshot_bounds) OVERRIDE; |
| 53 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 56 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 54 | 57 |
| 55 // Returns true if there's an X window manager present... in most cases. Some | 58 // Returns true if there's an X window manager present... in most cases. Some |
| 56 // window managers (notably, ion3) don't implement enough of ICCCM for us to | 59 // window managers (notably, ion3) don't implement enough of ICCCM for us to |
| 57 // detect that they're there. | 60 // detect that they're there. |
| 58 bool IsWindowManagerPresent(); | 61 bool IsWindowManagerPresent(); |
| 59 | 62 |
| 60 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 63 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
| 61 // |current_cursor_|. | 64 // |current_cursor_|. |
| 62 void SetCursorInternal(gfx::NativeCursor cursor); | 65 void SetCursorInternal(gfx::NativeCursor cursor); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 106 |
| 104 class ImageCursors; | 107 class ImageCursors; |
| 105 scoped_ptr<ImageCursors> image_cursors_; | 108 scoped_ptr<ImageCursors> image_cursors_; |
| 106 | 109 |
| 107 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 110 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 108 }; | 111 }; |
| 109 | 112 |
| 110 } // namespace aura | 113 } // namespace aura |
| 111 | 114 |
| 112 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 115 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |