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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 925
926 ui::NativeTheme* DesktopNativeWidgetAura::GetNativeTheme() const { 926 ui::NativeTheme* DesktopNativeWidgetAura::GetNativeTheme() const {
927 return DesktopWindowTreeHost::GetNativeTheme(content_window_); 927 return DesktopWindowTreeHost::GetNativeTheme(content_window_);
928 } 928 }
929 929
930 void DesktopNativeWidgetAura::OnRootViewLayout() const { 930 void DesktopNativeWidgetAura::OnRootViewLayout() const {
931 if (content_window_) 931 if (content_window_)
932 desktop_window_tree_host_->OnRootViewLayout(); 932 desktop_window_tree_host_->OnRootViewLayout();
933 } 933 }
934 934
935 bool DesktopNativeWidgetAura::CanHaveAlphaEnabled() const {
936 return content_window_ && desktop_window_tree_host_->CanHaveAlphaEnabled();
937 }
938
935 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { 939 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) {
936 OnEvent(native_event); 940 OnEvent(native_event);
937 } 941 }
938 942
939 //////////////////////////////////////////////////////////////////////////////// 943 ////////////////////////////////////////////////////////////////////////////////
940 // DesktopNativeWidgetAura, aura::WindowDelegate implementation: 944 // DesktopNativeWidgetAura, aura::WindowDelegate implementation:
941 945
942 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const { 946 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const {
943 return native_widget_delegate_->GetMinimumSize(); 947 return native_widget_delegate_->GetMinimumSize();
944 } 948 }
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 if (cursor_reference_count_ == 0) { 1212 if (cursor_reference_count_ == 0) {
1209 // We are the last DesktopNativeWidgetAura instance, and we are responsible 1213 // We are the last DesktopNativeWidgetAura instance, and we are responsible
1210 // for cleaning up |cursor_manager_|. 1214 // for cleaning up |cursor_manager_|.
1211 delete cursor_manager_; 1215 delete cursor_manager_;
1212 native_cursor_manager_ = NULL; 1216 native_cursor_manager_ = NULL;
1213 cursor_manager_ = NULL; 1217 cursor_manager_ = NULL;
1214 } 1218 }
1215 } 1219 }
1216 1220
1217 } // namespace views 1221 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698