| 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 native_widget_->SetFullscreen(fullscreen); | 693 native_widget_->SetFullscreen(fullscreen); |
| 694 | 694 |
| 695 if (non_client_view_) | 695 if (non_client_view_) |
| 696 non_client_view_->Layout(); | 696 non_client_view_->Layout(); |
| 697 } | 697 } |
| 698 | 698 |
| 699 bool Widget::IsFullscreen() const { | 699 bool Widget::IsFullscreen() const { |
| 700 return native_widget_->IsFullscreen(); | 700 return native_widget_->IsFullscreen(); |
| 701 } | 701 } |
| 702 | 702 |
| 703 void Widget::SetOpacity(unsigned char opacity) { | 703 void Widget::SetOpacity(float opacity) { |
| 704 native_widget_->SetOpacity(opacity); | 704 native_widget_->SetOpacity(opacity); |
| 705 } | 705 } |
| 706 | 706 |
| 707 void Widget::FlashFrame(bool flash) { | 707 void Widget::FlashFrame(bool flash) { |
| 708 native_widget_->FlashFrame(flash); | 708 native_widget_->FlashFrame(flash); |
| 709 } | 709 } |
| 710 | 710 |
| 711 View* Widget::GetRootView() { | 711 View* Widget::GetRootView() { |
| 712 return root_view_.get(); | 712 return root_view_.get(); |
| 713 } | 713 } |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 | 1487 |
| 1488 //////////////////////////////////////////////////////////////////////////////// | 1488 //////////////////////////////////////////////////////////////////////////////// |
| 1489 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1489 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1490 | 1490 |
| 1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1492 return this; | 1492 return this; |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 } // namespace internal | 1495 } // namespace internal |
| 1496 } // namespace views | 1496 } // namespace views |
| OLD | NEW |