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

Unified Diff: components/view_manager/native_viewport/platform_viewport_win.cc

Issue 1149083010: Mandoline: Remove native_viewport.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Windows Build I hope Created 5 years, 6 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: components/view_manager/native_viewport/platform_viewport_win.cc
diff --git a/components/view_manager/native_viewport/platform_viewport_win.cc b/components/view_manager/native_viewport/platform_viewport_win.cc
index 465d828e4e744476374f7134076a1400919af584..0e07f5d5937c7a06b7386d1120c7ff41fb85354b 100644
--- a/components/view_manager/native_viewport/platform_viewport_win.cc
+++ b/components/view_manager/native_viewport/platform_viewport_win.cc
@@ -5,6 +5,7 @@
#include "components/view_manager/native_viewport/platform_viewport.h"
#include "base/memory/scoped_ptr.h"
+#include "components/view_manager/public/interfaces/view_manager.mojom.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/converters/input_events/input_events_type_converters.h"
#include "ui/events/event.h"
@@ -133,7 +134,10 @@ class PlatformViewportWin : public PlatformViewport,
};
// static
-scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate) {
+scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate,
+ bool headless) {
+ if (headless)
+ return PlatformViewportHeadless::Create(delegate);
return scoped_ptr<PlatformViewport>(new PlatformViewportWin(delegate)).Pass();
}

Powered by Google App Engine
This is Rietveld 408576698