| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 693 |
| 694 if (non_client_view_) | 694 if (non_client_view_) |
| 695 non_client_view_->Layout(); | 695 non_client_view_->Layout(); |
| 696 } | 696 } |
| 697 | 697 |
| 698 bool Widget::IsFullscreen() const { | 698 bool Widget::IsFullscreen() const { |
| 699 return native_widget_->IsFullscreen(); | 699 return native_widget_->IsFullscreen(); |
| 700 } | 700 } |
| 701 | 701 |
| 702 void Widget::SetOpacity(float opacity) { | 702 void Widget::SetOpacity(float opacity) { |
| 703 DCHECK(opacity >= 0.0f); |
| 704 DCHECK(opacity <= 1.0f); |
| 703 native_widget_->SetOpacity(opacity); | 705 native_widget_->SetOpacity(opacity); |
| 704 } | 706 } |
| 705 | 707 |
| 706 void Widget::FlashFrame(bool flash) { | 708 void Widget::FlashFrame(bool flash) { |
| 707 native_widget_->FlashFrame(flash); | 709 native_widget_->FlashFrame(flash); |
| 708 } | 710 } |
| 709 | 711 |
| 710 View* Widget::GetRootView() { | 712 View* Widget::GetRootView() { |
| 711 return root_view_.get(); | 713 return root_view_.get(); |
| 712 } | 714 } |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 | 1544 |
| 1543 //////////////////////////////////////////////////////////////////////////////// | 1545 //////////////////////////////////////////////////////////////////////////////// |
| 1544 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1546 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1545 | 1547 |
| 1546 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1548 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1547 return this; | 1549 return this; |
| 1548 } | 1550 } |
| 1549 | 1551 |
| 1550 } // namespace internal | 1552 } // namespace internal |
| 1551 } // namespace views | 1553 } // namespace views |
| OLD | NEW |