OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |