Index: ash/shell_port.h |
diff --git a/ash/shell_port.h b/ash/shell_port.h |
index 9585d473f5afe14f846215f94dd9a8ecce3b6352..b16d04014bcfd01250be6fb08b5606d4a5c54e30 100644 |
--- a/ash/shell_port.h |
+++ b/ash/shell_port.h |
@@ -23,6 +23,7 @@ |
namespace display { |
class Display; |
class ManagedDisplayInfo; |
+class NativeDisplayDelegate; |
} |
namespace gfx { |
@@ -37,6 +38,8 @@ enum class PointerWatcherEventTypes; |
namespace ash { |
class AcceleratorController; |
+class AshWindowTreeHost; |
+struct AshWindowTreeHostInitParams; |
class ImmersiveFullscreenController; |
class KeyEventWatcher; |
class KeyboardUI; |
@@ -204,6 +207,11 @@ class ASH_EXPORT ShellPort { |
virtual void CreatePointerWatcherAdapter() = 0; |
+ // Creates an AshWindowTreeHost. A return value of null results in a platform |
+ // specific AshWindowTreeHost being created. |
+ virtual AshWindowTreeHost* CreateAshWindowTreeHost( |
James Cook
2017/04/18 00:43:39
I think this would be better if it returned unique
|
+ const AshWindowTreeHostInitParams& init_params) = 0; |
+ |
protected: |
ShellPort(); |
@@ -211,6 +219,8 @@ class ASH_EXPORT ShellPort { |
// the corresponding RootWindowController. |
virtual void CreatePrimaryHost() = 0; |
virtual void InitHosts(const ShellInitParams& init_params) = 0; |
+ virtual std::unique_ptr<display::NativeDisplayDelegate> |
+ CreateNativeDisplayDelegate() = 0; |
// Called during startup to create the AcceleratorController. |
virtual std::unique_ptr<AcceleratorController> |