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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed file modes for test files Created 7 years, 2 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
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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void Activate() OVERRIDE; 99 virtual void Activate() OVERRIDE;
100 virtual void Deactivate() OVERRIDE; 100 virtual void Deactivate() OVERRIDE;
101 virtual bool IsActive() const OVERRIDE; 101 virtual bool IsActive() const OVERRIDE;
102 virtual void Maximize() OVERRIDE; 102 virtual void Maximize() OVERRIDE;
103 virtual void Minimize() OVERRIDE; 103 virtual void Minimize() OVERRIDE;
104 virtual void Restore() OVERRIDE; 104 virtual void Restore() OVERRIDE;
105 virtual bool IsMaximized() const OVERRIDE; 105 virtual bool IsMaximized() const OVERRIDE;
106 virtual bool IsMinimized() const OVERRIDE; 106 virtual bool IsMinimized() const OVERRIDE;
107 virtual bool HasCapture() const OVERRIDE; 107 virtual bool HasCapture() const OVERRIDE;
108 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 108 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
109 virtual bool IsAlwaysOnTop() const OVERRIDE;
109 virtual void SetWindowTitle(const string16& title) OVERRIDE; 110 virtual void SetWindowTitle(const string16& title) OVERRIDE;
110 virtual void ClearNativeFocus() OVERRIDE; 111 virtual void ClearNativeFocus() OVERRIDE;
111 virtual Widget::MoveLoopResult RunMoveLoop( 112 virtual Widget::MoveLoopResult RunMoveLoop(
112 const gfx::Vector2d& drag_offset, 113 const gfx::Vector2d& drag_offset,
113 Widget::MoveLoopSource source, 114 Widget::MoveLoopSource source,
114 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 115 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
115 virtual void EndMoveLoop() OVERRIDE; 116 virtual void EndMoveLoop() OVERRIDE;
116 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 117 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
117 virtual bool ShouldUseNativeFrame() OVERRIDE; 118 virtual bool ShouldUseNativeFrame() OVERRIDE;
118 virtual void FrameTypeChanged() OVERRIDE; 119 virtual void FrameTypeChanged() OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // True if the window should be focused when the window is shown. 225 // True if the window should be focused when the window is shown.
225 bool focus_when_shown_; 226 bool focus_when_shown_;
226 227
227 // The window manager state bits. 228 // The window manager state bits.
228 std::set< ::Atom> window_properties_; 229 std::set< ::Atom> window_properties_;
229 230
230 // Local flag for fullscreen state to avoid a state mismatch between 231 // Local flag for fullscreen state to avoid a state mismatch between
231 // server and local window_properties_ during app-initiated fullscreen. 232 // server and local window_properties_ during app-initiated fullscreen.
232 bool is_fullscreen_; 233 bool is_fullscreen_;
233 234
235 // True if the window should stay on top of other windows.
236 bool always_on_top_;
237
234 // We are owned by the RootWindow, but we have to have a back pointer to it. 238 // We are owned by the RootWindow, but we have to have a back pointer to it.
235 aura::RootWindow* root_window_; 239 aura::RootWindow* root_window_;
236 240
237 // aura:: objects that we own. 241 // aura:: objects that we own.
238 scoped_ptr<aura::client::FocusClient> focus_client_; 242 scoped_ptr<aura::client::FocusClient> focus_client_;
239 scoped_ptr<views::corewm::CursorManager> cursor_client_; 243 scoped_ptr<views::corewm::CursorManager> cursor_client_;
240 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; 244 scoped_ptr<DesktopDispatcherClient> dispatcher_client_;
241 scoped_ptr<aura::client::ScreenPositionClient> position_client_; 245 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
242 scoped_ptr<DesktopDragDropClientAuraX11> drag_drop_client_; 246 scoped_ptr<DesktopDragDropClientAuraX11> drag_drop_client_;
243 247
(...skipping 24 matching lines...) Expand all
268 // A list of all (top-level) windows that have been created but not yet 272 // A list of all (top-level) windows that have been created but not yet
269 // destroyed. 273 // destroyed.
270 static std::list<XID>* open_windows_; 274 static std::list<XID>* open_windows_;
271 275
272 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); 276 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11);
273 }; 277 };
274 278
275 } // namespace views 279 } // namespace views
276 280
277 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 281 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698