Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: ui/views/widget/widget.cc

Issue 267593005: Refactor menu controller to isolate aura dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::SetHasShadow(bool has_shadow) {
722 native_widget_->SetHasShadow(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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 1489
1486 //////////////////////////////////////////////////////////////////////////////// 1490 ////////////////////////////////////////////////////////////////////////////////
1487 // internal::NativeWidgetPrivate, NativeWidget implementation: 1491 // internal::NativeWidgetPrivate, NativeWidget implementation:
1488 1492
1489 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1493 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1490 return this; 1494 return this;
1491 } 1495 }
1492 1496
1493 } // namespace internal 1497 } // namespace internal
1494 } // namespace views 1498 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698