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/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 wm_transition = wm::ANIMATE_BOTH; | 737 wm_transition = wm::ANIMATE_BOTH; |
738 break; | 738 break; |
739 case Widget::ANIMATE_NONE: | 739 case Widget::ANIMATE_NONE: |
740 wm_transition = wm::ANIMATE_NONE; | 740 wm_transition = wm::ANIMATE_NONE; |
741 break; | 741 break; |
742 } | 742 } |
743 wm::SetWindowVisibilityAnimationTransition(window_, wm_transition); | 743 wm::SetWindowVisibilityAnimationTransition(window_, wm_transition); |
744 } | 744 } |
745 | 745 |
746 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const { | 746 ui::NativeTheme* NativeWidgetAura::GetNativeTheme() const { |
747 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 747 return ui::NativeTheme::GetInstanceForNativeUi(); |
748 return DesktopWindowTreeHost::GetNativeTheme(window_); | |
749 #else | |
750 return ui::NativeThemeAura::instance(); | |
751 #endif | |
752 } | 748 } |
753 | 749 |
754 void NativeWidgetAura::OnRootViewLayout() { | 750 void NativeWidgetAura::OnRootViewLayout() { |
755 } | 751 } |
756 | 752 |
757 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { | 753 bool NativeWidgetAura::IsTranslucentWindowOpacitySupported() const { |
758 return true; | 754 return true; |
759 } | 755 } |
760 | 756 |
761 void NativeWidgetAura::OnSizeConstraintsChanged() { | 757 void NativeWidgetAura::OnSizeConstraintsChanged() { |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 gfx::NativeView native_view) { | 1210 gfx::NativeView native_view) { |
1215 aura::client::CaptureClient* capture_client = | 1211 aura::client::CaptureClient* capture_client = |
1216 aura::client::GetCaptureClient(native_view->GetRootWindow()); | 1212 aura::client::GetCaptureClient(native_view->GetRootWindow()); |
1217 if (!capture_client) | 1213 if (!capture_client) |
1218 return nullptr; | 1214 return nullptr; |
1219 return capture_client->GetGlobalCaptureWindow(); | 1215 return capture_client->GetGlobalCaptureWindow(); |
1220 } | 1216 } |
1221 | 1217 |
1222 } // namespace internal | 1218 } // namespace internal |
1223 } // namespace views | 1219 } // namespace views |
OLD | NEW |