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

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: x11 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
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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 last_mouse_event_position_, 974 last_mouse_event_position_,
975 last_mouse_event_position_, 975 last_mouse_event_position_,
976 ui::EF_IS_SYNTHESIZED, 0); 976 ui::EF_IS_SYNTHESIZED, 0);
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 bool Widget::IsTranslucentWindowOpacitySupported() const {
985 return native_widget_->IsTranslucentWindowOpacitySupported();
986 }
987
984 void Widget::OnOwnerClosing() { 988 void Widget::OnOwnerClosing() {
985 } 989 }
986 990
987 //////////////////////////////////////////////////////////////////////////////// 991 ////////////////////////////////////////////////////////////////////////////////
988 // Widget, NativeWidgetDelegate implementation: 992 // Widget, NativeWidgetDelegate implementation:
989 993
990 bool Widget::IsModal() const { 994 bool Widget::IsModal() const {
991 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; 995 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE;
992 } 996 }
993 997
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 1510
1507 //////////////////////////////////////////////////////////////////////////////// 1511 ////////////////////////////////////////////////////////////////////////////////
1508 // internal::NativeWidgetPrivate, NativeWidget implementation: 1512 // internal::NativeWidgetPrivate, NativeWidget implementation:
1509 1513
1510 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1514 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1511 return this; 1515 return this;
1512 } 1516 }
1513 1517
1514 } // namespace internal 1518 } // namespace internal
1515 } // namespace views 1519 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698