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

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: Sync and rebase 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
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | 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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 last_mouse_event_position_, 980 last_mouse_event_position_,
981 last_mouse_event_position_, 981 last_mouse_event_position_,
982 ui::EF_IS_SYNTHESIZED, 0); 982 ui::EF_IS_SYNTHESIZED, 0);
983 root_view_->OnMouseMoved(mouse_event); 983 root_view_->OnMouseMoved(mouse_event);
984 } 984 }
985 985
986 void Widget::OnRootViewLayout() { 986 void Widget::OnRootViewLayout() {
987 native_widget_->OnRootViewLayout(); 987 native_widget_->OnRootViewLayout();
988 } 988 }
989 989
990 bool Widget::IsTranslucentWindowOpacitySupported() const {
991 return native_widget_->IsTranslucentWindowOpacitySupported();
992 }
993
990 void Widget::OnOwnerClosing() { 994 void Widget::OnOwnerClosing() {
991 } 995 }
992 996
993 //////////////////////////////////////////////////////////////////////////////// 997 ////////////////////////////////////////////////////////////////////////////////
994 // Widget, NativeWidgetDelegate implementation: 998 // Widget, NativeWidgetDelegate implementation:
995 999
996 bool Widget::IsModal() const { 1000 bool Widget::IsModal() const {
997 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; 1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE;
998 } 1002 }
999 1003
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 1511
1508 //////////////////////////////////////////////////////////////////////////////// 1512 ////////////////////////////////////////////////////////////////////////////////
1509 // internal::NativeWidgetPrivate, NativeWidget implementation: 1513 // internal::NativeWidgetPrivate, NativeWidget implementation:
1510 1514
1511 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1512 return this; 1516 return this;
1513 } 1517 }
1514 1518
1515 } // namespace internal 1519 } // namespace internal
1516 } // namespace views 1520 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698