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

Unified Diff: ash/shell_port.h

Issue 2821203002: cros: Adds ShellPort functions for simplified display mode (Closed)
Patch Set: cleanup Created 3 years, 8 months 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
« ash/host/ash_window_tree_host.h ('K') | « ash/mus/bridge/shell_port_mash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« ash/host/ash_window_tree_host.h ('K') | « ash/mus/bridge/shell_port_mash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698