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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.h

Issue 2575243002: Changes DesktopNativeWidgetAura to not call InitHost or window->Show() (Closed)
Patch Set: Created 4 years 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
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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
(...skipping 29 matching lines...) Expand all
40 40
41 class VIEWS_EXPORT DesktopWindowTreeHost { 41 class VIEWS_EXPORT DesktopWindowTreeHost {
42 public: 42 public:
43 virtual ~DesktopWindowTreeHost() {} 43 virtual ~DesktopWindowTreeHost() {}
44 44
45 static DesktopWindowTreeHost* Create( 45 static DesktopWindowTreeHost* Create(
46 internal::NativeWidgetDelegate* native_widget_delegate, 46 internal::NativeWidgetDelegate* native_widget_delegate,
47 DesktopNativeWidgetAura* desktop_native_widget_aura); 47 DesktopNativeWidgetAura* desktop_native_widget_aura);
48 48
49 // Sets up resources needed before the WindowEventDispatcher has been created. 49 // Sets up resources needed before the WindowEventDispatcher has been created.
50 // It is expected this calls InitHost() on the WindowTreeHost.
50 virtual void Init(aura::Window* content_window, 51 virtual void Init(aura::Window* content_window,
51 const Widget::InitParams& params) = 0; 52 const Widget::InitParams& params) = 0;
52 53
53 // Invoked once the DesktopNativeWidgetAura has been created. 54 // Invoked once the DesktopNativeWidgetAura has been created.
54 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; 55 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0;
55 56
56 // Called from DesktopNativeWidgetAura::OnWidgetInitDone(). 57 // Called from DesktopNativeWidgetAura::OnWidgetInitDone().
57 virtual void OnWidgetInitDone() = 0; 58 virtual void OnWidgetInitDone() = 0;
58 59
59 // Creates and returns the Tooltip implementation to use. Return value is 60 // Creates and returns the Tooltip implementation to use. Return value is
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 162
162 // A return value of true indicates DesktopNativeCursorManager should be 163 // A return value of true indicates DesktopNativeCursorManager should be
163 // used, a return value of false indicates the DesktopWindowTreeHost manages 164 // used, a return value of false indicates the DesktopWindowTreeHost manages
164 // cursors itself. 165 // cursors itself.
165 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; 166 virtual bool ShouldUseDesktopNativeCursorManager() const = 0;
166 }; 167 };
167 168
168 } // namespace views 169 } // namespace views
169 170
170 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 171 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698