| 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 } | 711 } |
| 712 | 712 |
| 713 bool Widget::IsFullscreen() const { | 713 bool Widget::IsFullscreen() const { |
| 714 return native_widget_->IsFullscreen(); | 714 return native_widget_->IsFullscreen(); |
| 715 } | 715 } |
| 716 | 716 |
| 717 void Widget::SetOpacity(unsigned char opacity) { | 717 void Widget::SetOpacity(unsigned char opacity) { |
| 718 native_widget_->SetOpacity(opacity); | 718 native_widget_->SetOpacity(opacity); |
| 719 } | 719 } |
| 720 | 720 |
| 721 void Widget::SetHasActivationShadow(bool has_shadow) { |
| 722 native_widget_->SetHasActivationShadow(has_shadow); |
| 723 } |
| 724 |
| 721 void Widget::SetUseDragFrame(bool use_drag_frame) { | 725 void Widget::SetUseDragFrame(bool use_drag_frame) { |
| 722 native_widget_->SetUseDragFrame(use_drag_frame); | 726 native_widget_->SetUseDragFrame(use_drag_frame); |
| 723 } | 727 } |
| 724 | 728 |
| 725 void Widget::FlashFrame(bool flash) { | 729 void Widget::FlashFrame(bool flash) { |
| 726 native_widget_->FlashFrame(flash); | 730 native_widget_->FlashFrame(flash); |
| 727 } | 731 } |
| 728 | 732 |
| 729 View* Widget::GetRootView() { | 733 View* Widget::GetRootView() { |
| 730 return root_view_.get(); | 734 return root_view_.get(); |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1504 | 1508 |
| 1505 //////////////////////////////////////////////////////////////////////////////// | 1509 //////////////////////////////////////////////////////////////////////////////// |
| 1506 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1510 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1507 | 1511 |
| 1508 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1512 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1509 return this; | 1513 return this; |
| 1510 } | 1514 } |
| 1511 | 1515 |
| 1512 } // namespace internal | 1516 } // namespace internal |
| 1513 } // namespace views | 1517 } // namespace views |
| OLD | NEW |