| 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/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 659 } |
| 660 | 660 |
| 661 bool Widget::IsAlwaysOnTop() const { | 661 bool Widget::IsAlwaysOnTop() const { |
| 662 return native_widget_->IsAlwaysOnTop(); | 662 return native_widget_->IsAlwaysOnTop(); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void Widget::SetVisibleOnAllWorkspaces(bool always_visible) { | 665 void Widget::SetVisibleOnAllWorkspaces(bool always_visible) { |
| 666 native_widget_->SetVisibleOnAllWorkspaces(always_visible); | 666 native_widget_->SetVisibleOnAllWorkspaces(always_visible); |
| 667 } | 667 } |
| 668 | 668 |
| 669 bool Widget::IsVisibleOnAllWorkspaces() const { |
| 670 return native_widget_->IsVisibleOnAllWorkspaces(); |
| 671 } |
| 672 |
| 669 void Widget::Maximize() { | 673 void Widget::Maximize() { |
| 670 native_widget_->Maximize(); | 674 native_widget_->Maximize(); |
| 671 } | 675 } |
| 672 | 676 |
| 673 void Widget::Minimize() { | 677 void Widget::Minimize() { |
| 674 native_widget_->Minimize(); | 678 native_widget_->Minimize(); |
| 675 } | 679 } |
| 676 | 680 |
| 677 void Widget::Restore() { | 681 void Widget::Restore() { |
| 678 native_widget_->Restore(); | 682 native_widget_->Restore(); |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 | 1491 |
| 1488 //////////////////////////////////////////////////////////////////////////////// | 1492 //////////////////////////////////////////////////////////////////////////////// |
| 1489 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1493 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1490 | 1494 |
| 1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1495 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1492 return this; | 1496 return this; |
| 1493 } | 1497 } |
| 1494 | 1498 |
| 1495 } // namespace internal | 1499 } // namespace internal |
| 1496 } // namespace views | 1500 } // namespace views |
| OLD | NEW |