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

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

Issue 290553002: Refactor menu dependency on aura/wm SetShadowType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 723
724 bool Widget::IsFullscreen() const { 724 bool Widget::IsFullscreen() const {
725 return native_widget_->IsFullscreen(); 725 return native_widget_->IsFullscreen();
726 } 726 }
727 727
728 void Widget::SetOpacity(unsigned char opacity) { 728 void Widget::SetOpacity(unsigned char opacity) {
729 native_widget_->SetOpacity(opacity); 729 native_widget_->SetOpacity(opacity);
730 } 730 }
731 731
732 void Widget::SetHasActivationShadow(bool has_shadow) {
733 native_widget_->SetHasActivationShadow(has_shadow);
734 }
735
732 void Widget::SetUseDragFrame(bool use_drag_frame) { 736 void Widget::SetUseDragFrame(bool use_drag_frame) {
733 native_widget_->SetUseDragFrame(use_drag_frame); 737 native_widget_->SetUseDragFrame(use_drag_frame);
734 } 738 }
735 739
736 void Widget::FlashFrame(bool flash) { 740 void Widget::FlashFrame(bool flash) {
737 native_widget_->FlashFrame(flash); 741 native_widget_->FlashFrame(flash);
738 } 742 }
739 743
740 View* Widget::GetRootView() { 744 View* Widget::GetRootView() {
741 return root_view_.get(); 745 return root_view_.get();
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 1526
1523 //////////////////////////////////////////////////////////////////////////////// 1527 ////////////////////////////////////////////////////////////////////////////////
1524 // internal::NativeWidgetPrivate, NativeWidget implementation: 1528 // internal::NativeWidgetPrivate, NativeWidget implementation:
1525 1529
1526 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1530 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1527 return this; 1531 return this;
1528 } 1532 }
1529 1533
1530 } // namespace internal 1534 } // namespace internal
1531 } // namespace views 1535 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698