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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.h

Issue 2471033005: Adds DesktopWindowTreeHostMus (Closed)
Patch Set: fix 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.h
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
index 94d02477c3d719fed148eab5dd6497e92463e106..8d7380826ca7cdc87cf56720ae9ffc1c8d5e98a7 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
@@ -68,6 +68,11 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
// window.
static DesktopNativeWidgetAura* ForWindow(aura::Window* window);
+ // Used to explicitly set a DesktopWindowTreeHost. Must be called before
+ // InitNativeWidget().
+ void SetDesktopWindowTreeHost(
+ std::unique_ptr<DesktopWindowTreeHost> desktop_window_tree_host);
+
// Called by our DesktopWindowTreeHost after it has deleted native resources;
// this is the signal that we should start our shutdown.
virtual void OnHostClosed();
@@ -289,7 +294,7 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
// crash.
static int cursor_reference_count_;
static wm::CursorManager* cursor_manager_;
- static views::DesktopNativeCursorManager* native_cursor_manager_;
+ static DesktopNativeCursorManager* native_cursor_manager_;
std::unique_ptr<wm::ShadowController> shadow_controller_;

Powered by Google App Engine
This is Rietveld 408576698