| OLD | NEW |
| 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 Loading... |
| 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::IsTranslucentWindowOpacitySupported() const { |
| 936 return content_window_ && |
| 937 desktop_window_tree_host_->IsTranslucentWindowOpacitySupported(); |
| 938 } |
| 939 |
| 935 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { | 940 void DesktopNativeWidgetAura::RepostNativeEvent(gfx::NativeEvent native_event) { |
| 936 OnEvent(native_event); | 941 OnEvent(native_event); |
| 937 } | 942 } |
| 938 | 943 |
| 939 //////////////////////////////////////////////////////////////////////////////// | 944 //////////////////////////////////////////////////////////////////////////////// |
| 940 // DesktopNativeWidgetAura, aura::WindowDelegate implementation: | 945 // DesktopNativeWidgetAura, aura::WindowDelegate implementation: |
| 941 | 946 |
| 942 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const { | 947 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const { |
| 943 return native_widget_delegate_->GetMinimumSize(); | 948 return native_widget_delegate_->GetMinimumSize(); |
| 944 } | 949 } |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 if (cursor_reference_count_ == 0) { | 1213 if (cursor_reference_count_ == 0) { |
| 1209 // We are the last DesktopNativeWidgetAura instance, and we are responsible | 1214 // We are the last DesktopNativeWidgetAura instance, and we are responsible |
| 1210 // for cleaning up |cursor_manager_|. | 1215 // for cleaning up |cursor_manager_|. |
| 1211 delete cursor_manager_; | 1216 delete cursor_manager_; |
| 1212 native_cursor_manager_ = NULL; | 1217 native_cursor_manager_ = NULL; |
| 1213 cursor_manager_ = NULL; | 1218 cursor_manager_ = NULL; |
| 1214 } | 1219 } |
| 1215 } | 1220 } |
| 1216 | 1221 |
| 1217 } // namespace views | 1222 } // namespace views |
| OLD | NEW |