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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split out non-essential parts for another CL. Created 6 years, 5 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
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 root_view_->OnMouseMoved(mouse_event); 977 root_view_->OnMouseMoved(mouse_event);
978 } 978 }
979 979
980 void Widget::OnRootViewLayout() { 980 void Widget::OnRootViewLayout() {
981 native_widget_->OnRootViewLayout(); 981 native_widget_->OnRootViewLayout();
982 } 982 }
983 983
984 void Widget::OnOwnerClosing() { 984 void Widget::OnOwnerClosing() {
985 } 985 }
986 986
987 bool Widget::CanHaveAlphaEnabled() const {
tapted 2014/07/16 03:01:01 nit: move up
jackhou1 2014/07/16 05:54:04 Done.
988 return native_widget_->CanHaveAlphaEnabled();
989 }
987 //////////////////////////////////////////////////////////////////////////////// 990 ////////////////////////////////////////////////////////////////////////////////
988 // Widget, NativeWidgetDelegate implementation: 991 // Widget, NativeWidgetDelegate implementation:
989 992
990 bool Widget::IsModal() const { 993 bool Widget::IsModal() const {
991 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; 994 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE;
992 } 995 }
993 996
994 bool Widget::IsDialogBox() const { 997 bool Widget::IsDialogBox() const {
995 return !!widget_delegate_->AsDialogDelegate(); 998 return !!widget_delegate_->AsDialogDelegate();
996 } 999 }
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 1509
1507 //////////////////////////////////////////////////////////////////////////////// 1510 ////////////////////////////////////////////////////////////////////////////////
1508 // internal::NativeWidgetPrivate, NativeWidget implementation: 1511 // internal::NativeWidgetPrivate, NativeWidget implementation:
1509 1512
1510 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1513 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1511 return this; 1514 return this;
1512 } 1515 }
1513 1516
1514 } // namespace internal 1517 } // namespace internal
1515 } // namespace views 1518 } // namespace views
OLDNEW
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698