| 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 | 1515 |
| 1512 //////////////////////////////////////////////////////////////////////////////// | 1516 //////////////////////////////////////////////////////////////////////////////// |
| 1513 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1517 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1514 | 1518 |
| 1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1519 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1516 return this; | 1520 return this; |
| 1517 } | 1521 } |
| 1518 | 1522 |
| 1519 } // namespace internal | 1523 } // namespace internal |
| 1520 } // namespace views | 1524 } // namespace views |
| OLD | NEW |