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

Unified Diff: ash/host/ash_window_tree_host.cc

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
Index: ash/host/ash_window_tree_host.cc
diff --git a/ash/host/ash_window_tree_host.cc b/ash/host/ash_window_tree_host.cc
index 939f097d35648af36c2c33d1b4c972f8e1cb175b..d2afd91ca48cd5511fd55a0bc82dc399d1549b8e 100644
--- a/ash/host/ash_window_tree_host.cc
+++ b/ash/host/ash_window_tree_host.cc
@@ -6,6 +6,7 @@
#include "ash/host/ash_window_tree_host_init_params.h"
#include "ash/host/ash_window_tree_host_unified.h"
+#include "ash/shell_port.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/window_tree_host.h"
#include "ui/events/event.h"
@@ -49,6 +50,11 @@ void AshWindowTreeHost::TranslateLocatedEvent(ui::LocatedEvent* event) {
// static
AshWindowTreeHost* AshWindowTreeHost::Create(
const AshWindowTreeHostInitParams& init_params) {
+ AshWindowTreeHost* ash_window_tree_host =
+ ShellPort::Get()->CreateAshWindowTreeHost(init_params);
+ if (ash_window_tree_host)
+ return ash_window_tree_host;
+
if (init_params.offscreen)
return new AshWindowTreeHostUnified(init_params.initial_bounds);
#if defined(USE_OZONE)

Powered by Google App Engine
This is Rietveld 408576698