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

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

Issue 2483683002: Try to get rid of all direct references to particular native themes. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_window_tree_host.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
6 6
7 #include "ui/native_theme/native_theme_aura.h" 7 #include "ui/native_theme/native_theme.h"
8 8
9 namespace views { 9 namespace views {
10 10
11 // static 11 // static
12 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 12 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
13 internal::NativeWidgetDelegate* native_widget_delegate, 13 internal::NativeWidgetDelegate* native_widget_delegate,
14 DesktopNativeWidgetAura* desktop_native_widget_aura) { 14 DesktopNativeWidgetAura* desktop_native_widget_aura) {
15 // DesktopNativeWidgetAura is only used with mus, and MusClient injects the 15 // DesktopNativeWidgetAura is only used with mus, and MusClient injects the
16 // DesktopWindowTreeHost so that this is never called. 16 // DesktopWindowTreeHost so that this is never called.
17 NOTREACHED(); 17 NOTREACHED();
18 return nullptr; 18 return nullptr;
19 } 19 }
20 20
21 // static 21 // static
22 ui::NativeTheme* DesktopWindowTreeHost::GetNativeTheme(aura::Window* window) { 22 ui::NativeTheme* DesktopWindowTreeHost::GetNativeTheme(aura::Window* window) {
23 return ui::NativeThemeAura::instance(); 23 return ui::NativeTheme::GetInstanceForNativeUi();
24 } 24 }
25 25
26 } // namespace views 26 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698