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

Side by Side Diff: ui/views/widget/widget.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
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.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 (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_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 // Prevents the window from being rendered as deactivated. This state is 455 // Prevents the window from being rendered as deactivated. This state is
456 // reset automatically as soon as the window becomes activated again. There is 456 // reset automatically as soon as the window becomes activated again. There is
457 // no ability to control the state through this API as this leads to sync 457 // no ability to control the state through this API as this leads to sync
458 // problems. 458 // problems.
459 void DisableInactiveRendering(); 459 void DisableInactiveRendering();
460 460
461 // Sets the widget to be on top of all other widgets in the windowing system. 461 // Sets the widget to be on top of all other widgets in the windowing system.
462 void SetAlwaysOnTop(bool on_top); 462 void SetAlwaysOnTop(bool on_top);
463 463
464 // Returns whether the widget has been set to be on top of most other widgets
465 // in the windowing system.
466 bool IsAlwaysOnTop() const;
467
464 // Maximizes/minimizes/restores the window. 468 // Maximizes/minimizes/restores the window.
465 void Maximize(); 469 void Maximize();
466 void Minimize(); 470 void Minimize();
467 void Restore(); 471 void Restore();
468 472
469 // Whether or not the window is maximized or minimized. 473 // Whether or not the window is maximized or minimized.
470 virtual bool IsMaximized() const; 474 virtual bool IsMaximized() const;
471 bool IsMinimized() const; 475 bool IsMinimized() const;
472 476
473 // Accessors for fullscreen state. 477 // Accessors for fullscreen state.
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 // True when window movement via mouse interaction with the frame should be 892 // True when window movement via mouse interaction with the frame should be
889 // disabled. 893 // disabled.
890 bool movement_disabled_; 894 bool movement_disabled_;
891 895
892 DISALLOW_COPY_AND_ASSIGN(Widget); 896 DISALLOW_COPY_AND_ASSIGN(Widget);
893 }; 897 };
894 898
895 } // namespace views 899 } // namespace views
896 900
897 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 901 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698