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

Side by Side Diff: ui/base/base_window.h

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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_BASE_BASE_WINDOW_H_ 5 #ifndef UI_BASE_BASE_WINDOW_H_
6 #define UI_BASE_BASE_WINDOW_H_ 6 #define UI_BASE_BASE_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/base/ui_base_types.h" // WindowShowState 9 #include "ui/base/ui_base_types.h" // WindowShowState
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Sets the window's size and position to the specified values. 82 // Sets the window's size and position to the specified values.
83 virtual void SetBounds(const gfx::Rect& bounds) = 0; 83 virtual void SetBounds(const gfx::Rect& bounds) = 0;
84 84
85 // Flashes the taskbar item associated with this window. 85 // Flashes the taskbar item associated with this window.
86 // Set |flash| to true to initiate flashing, false to stop flashing. 86 // Set |flash| to true to initiate flashing, false to stop flashing.
87 virtual void FlashFrame(bool flash) = 0; 87 virtual void FlashFrame(bool flash) = 0;
88 88
89 // Returns true if a window is set to be always on top. 89 // Returns true if a window is set to be always on top.
90 virtual bool IsAlwaysOnTop() const = 0; 90 virtual bool IsAlwaysOnTop() const = 0;
91
92 // If set to true, the window will stay on top of other windows which do not
93 // have this flag enabled.
94 virtual void SetAlwaysOnTop(bool always_on_top) = 0;
91 }; 95 };
92 96
93 } // namespace ui 97 } // namespace ui
94 98
95 #endif // UI_BASE_BASE_WINDOW_H_ 99 #endif // UI_BASE_BASE_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698