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

Unified Diff: ui/aura/window_port.h

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment 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
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_port_local.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_port.h
diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h
index 6f04399d391424f061297e26dfcd28cad0a6928b..b82305d2206d07bb9c13d90de7e01b41552fede0 100644
--- a/ui/aura/window_port.h
+++ b/ui/aura/window_port.h
@@ -28,11 +28,6 @@ struct AURA_EXPORT WindowPortPropertyData {
virtual ~WindowPortPropertyData() {}
};
-// See comments in Init() for details.
-struct AURA_EXPORT WindowPortInitData {
- virtual ~WindowPortInitData() {}
-};
-
// WindowPort defines an interface to enable Window to be used with or without
// mus. WindowPort is owned by Window and called at key points in Windows
// lifetime that enable Window to be used in both environments.
@@ -43,12 +38,8 @@ class AURA_EXPORT WindowPort {
public:
virtual ~WindowPort() {}
- // Called from Window::Init(). The return value of this is supplied to
- // OnInitDone() and is used to allow the WindowPort to pass data between the
- // two functions.
- virtual std::unique_ptr<WindowPortInitData> OnPreInit(Window* window) = 0;
-
- virtual void OnPostInit(std::unique_ptr<WindowPortInitData> data) = 0;
+ // Called from Window::Init().
+ virtual void OnPreInit(Window* window) = 0;
virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0;
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_port_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698