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

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: Rebase to master. Fixes for tapted. 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::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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 1496
1493 //////////////////////////////////////////////////////////////////////////////// 1497 ////////////////////////////////////////////////////////////////////////////////
1494 // internal::NativeWidgetPrivate, NativeWidget implementation: 1498 // internal::NativeWidgetPrivate, NativeWidget implementation:
1495 1499
1496 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1500 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1497 return this; 1501 return this;
1498 } 1502 }
1499 1503
1500 } // namespace internal 1504 } // namespace internal
1501 } // namespace views 1505 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698