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

Side by Side Diff: ui/aura/root_window_host_linux.h

Issue 12746002: Re-implement overscan & Implement Display Rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: skip rotate test on win8 Created 7 years, 9 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
OLDNEW
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 #include <vector> 10 #include <vector>
11 11
12 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 12 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
13 #undef RootWindow 13 #undef RootWindow
14 14
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "ui/aura/env_observer.h" 17 #include "ui/aura/env_observer.h"
18 #include "ui/aura/root_window_host.h" 18 #include "ui/aura/root_window_host.h"
19 #include "ui/base/x/x11_atom_cache.h" 19 #include "ui/base/x/x11_atom_cache.h"
20 #include "ui/base/x/x11_util.h" 20 #include "ui/base/x/x11_util.h"
21 #include "ui/gfx/insets.h"
21 #include "ui/gfx/rect.h" 22 #include "ui/gfx/rect.h"
22 23
23 namespace ui { 24 namespace ui {
24 class MouseEvent; 25 class MouseEvent;
25 } 26 }
26 27
27 namespace aura { 28 namespace aura {
28 29
29 namespace internal { 30 namespace internal {
30 class TouchEventCalibrate; 31 class TouchEventCalibrate;
(...skipping 11 matching lines...) Expand all
42 43
43 // RootWindowHost Overrides. 44 // RootWindowHost Overrides.
44 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; 45 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE;
45 virtual RootWindow* GetRootWindow() OVERRIDE; 46 virtual RootWindow* GetRootWindow() OVERRIDE;
46 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 47 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
47 virtual void Show() OVERRIDE; 48 virtual void Show() OVERRIDE;
48 virtual void Hide() OVERRIDE; 49 virtual void Hide() OVERRIDE;
49 virtual void ToggleFullScreen() OVERRIDE; 50 virtual void ToggleFullScreen() OVERRIDE;
50 virtual gfx::Rect GetBounds() const OVERRIDE; 51 virtual gfx::Rect GetBounds() const OVERRIDE;
51 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
53 virtual gfx::Insets GetInsets() const OVERRIDE;
54 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE;
52 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 55 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
53 virtual void SetCapture() OVERRIDE; 56 virtual void SetCapture() OVERRIDE;
54 virtual void ReleaseCapture() OVERRIDE; 57 virtual void ReleaseCapture() OVERRIDE;
55 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; 58 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE;
56 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 59 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
57 virtual bool ConfineCursorToRootWindow() OVERRIDE; 60 virtual bool ConfineCursorToRootWindow() OVERRIDE;
58 virtual void UnConfineCursor() OVERRIDE; 61 virtual void UnConfineCursor() OVERRIDE;
59 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; 62 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE;
60 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 63 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
61 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 64 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 116
114 // Current Aura cursor. 117 // Current Aura cursor.
115 gfx::NativeCursor current_cursor_; 118 gfx::NativeCursor current_cursor_;
116 119
117 // Is the window mapped to the screen? 120 // Is the window mapped to the screen?
118 bool window_mapped_; 121 bool window_mapped_;
119 122
120 // The bounds of |xwindow_|. 123 // The bounds of |xwindow_|.
121 gfx::Rect bounds_; 124 gfx::Rect bounds_;
122 125
126 // The insets that specifies the effective area within the |window_|.
127 gfx::Insets insets_;
128
123 // The bounds of |x_root_window_|. 129 // The bounds of |x_root_window_|.
124 gfx::Rect x_root_bounds_; 130 gfx::Rect x_root_bounds_;
125 131
126 // True if the root host resides on the internal display 132 // True if the root host resides on the internal display
127 bool is_internal_display_; 133 bool is_internal_display_;
128 134
129 // True if the window should be focused when the window is shown. 135 // True if the window should be focused when the window is shown.
130 bool focus_when_shown_; 136 bool focus_when_shown_;
131 137
132 scoped_ptr<XID[]> pointer_barriers_; 138 scoped_ptr<XID[]> pointer_barriers_;
133 139
134 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; 140 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_;
135 141
136 scoped_ptr<MouseMoveFilter> mouse_move_filter_; 142 scoped_ptr<MouseMoveFilter> mouse_move_filter_;
137 143
138 ui::X11AtomCache atom_cache_; 144 ui::X11AtomCache atom_cache_;
139 145
140 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 146 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
141 }; 147 };
142 148
143 } // namespace aura 149 } // namespace aura
144 150
145 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 151 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698