Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: ui/platform_window/x11/x11_window.h

Issue 431683002: platform_window: Add SetCursor & MoveCursorTo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/platform_window/win/win_window.cc ('k') | ui/platform_window/x11/x11_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PLATFORM_WINDOW_X11_X11_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_
7 7
8 #include "ui/events/platform/platform_event_dispatcher.h" 8 #include "ui/events/platform/platform_event_dispatcher.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/x/x11_atom_cache.h" 10 #include "ui/gfx/x/x11_atom_cache.h"
(...skipping 22 matching lines...) Expand all
33 virtual void Hide() OVERRIDE; 33 virtual void Hide() OVERRIDE;
34 virtual void Close() OVERRIDE; 34 virtual void Close() OVERRIDE;
35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
36 virtual gfx::Rect GetBounds() OVERRIDE; 36 virtual gfx::Rect GetBounds() OVERRIDE;
37 virtual void SetCapture() OVERRIDE; 37 virtual void SetCapture() OVERRIDE;
38 virtual void ReleaseCapture() OVERRIDE; 38 virtual void ReleaseCapture() OVERRIDE;
39 virtual void ToggleFullscreen() OVERRIDE; 39 virtual void ToggleFullscreen() OVERRIDE;
40 virtual void Maximize() OVERRIDE; 40 virtual void Maximize() OVERRIDE;
41 virtual void Minimize() OVERRIDE; 41 virtual void Minimize() OVERRIDE;
42 virtual void Restore() OVERRIDE; 42 virtual void Restore() OVERRIDE;
43 virtual void SetCursor(PlatformCursor cursor) OVERRIDE;
44 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
43 45
44 // PlatformEventDispatcher: 46 // PlatformEventDispatcher:
45 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; 47 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE;
46 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; 48 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE;
47 49
48 PlatformWindowDelegate* delegate_; 50 PlatformWindowDelegate* delegate_;
49 51
50 XDisplay* xdisplay_; 52 XDisplay* xdisplay_;
51 XID xwindow_; 53 XID xwindow_;
52 XID xroot_window_; 54 XID xroot_window_;
53 X11AtomCache atom_cache_; 55 X11AtomCache atom_cache_;
54 56
55 // Setting the bounds is an asynchronous operation in X11. |requested_bounds_| 57 // Setting the bounds is an asynchronous operation in X11. |requested_bounds_|
56 // is the bounds requested using XConfigureWindow, and |confirmed_bounds_| is 58 // is the bounds requested using XConfigureWindow, and |confirmed_bounds_| is
57 // the bounds the X11 server has set on the window. 59 // the bounds the X11 server has set on the window.
58 gfx::Rect requested_bounds_; 60 gfx::Rect requested_bounds_;
59 gfx::Rect confirmed_bounds_; 61 gfx::Rect confirmed_bounds_;
60 62
61 bool window_mapped_; 63 bool window_mapped_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(X11Window); 65 DISALLOW_COPY_AND_ASSIGN(X11Window);
64 }; 66 };
65 67
66 } // namespace ui 68 } // namespace ui
67 69
68 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ 70 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/platform_window/win/win_window.cc ('k') | ui/platform_window/x11/x11_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698