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

Side by Side Diff: ui/views/widget/widget.cc

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/widget.h ('k') | ui/views/widget/widget_unittest.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 #include "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 651 }
652 652
653 void Widget::DisableInactiveRendering() { 653 void Widget::DisableInactiveRendering() {
654 SetInactiveRenderingDisabled(true); 654 SetInactiveRenderingDisabled(true);
655 } 655 }
656 656
657 void Widget::SetAlwaysOnTop(bool on_top) { 657 void Widget::SetAlwaysOnTop(bool on_top) {
658 native_widget_->SetAlwaysOnTop(on_top); 658 native_widget_->SetAlwaysOnTop(on_top);
659 } 659 }
660 660
661 bool Widget::IsAlwaysOnTop() const {
662 return native_widget_->IsAlwaysOnTop();
663 }
664
661 void Widget::Maximize() { 665 void Widget::Maximize() {
662 native_widget_->Maximize(); 666 native_widget_->Maximize();
663 } 667 }
664 668
665 void Widget::Minimize() { 669 void Widget::Minimize() {
666 native_widget_->Minimize(); 670 native_widget_->Minimize();
667 } 671 }
668 672
669 void Widget::Restore() { 673 void Widget::Restore() {
670 native_widget_->Restore(); 674 native_widget_->Restore();
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 1431
1428 //////////////////////////////////////////////////////////////////////////////// 1432 ////////////////////////////////////////////////////////////////////////////////
1429 // internal::NativeWidgetPrivate, NativeWidget implementation: 1433 // internal::NativeWidgetPrivate, NativeWidget implementation:
1430 1434
1431 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1435 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1432 return this; 1436 return this;
1433 } 1437 }
1434 1438
1435 } // namespace internal 1439 } // namespace internal
1436 } // namespace views 1440 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698