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

Unified Diff: services/native_viewport/platform_viewport_x11.cc

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « services/native_viewport/platform_viewport_stub.cc ('k') | shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/platform_viewport_x11.cc
diff --git a/services/native_viewport/platform_viewport_x11.cc b/services/native_viewport/platform_viewport_x11.cc
index 951dba81e9d2170bcd44931d2d3d4bfa42dfe6bb..d45215085cebfb319776115d44dadcebeb888ead 100644
--- a/services/native_viewport/platform_viewport_x11.cc
+++ b/services/native_viewport/platform_viewport_x11.cc
@@ -34,8 +34,7 @@ float ConvertUIWheelValueToMojoValue(int offset) {
class PlatformViewportX11 : public PlatformViewport,
public ui::PlatformWindowDelegate {
public:
- explicit PlatformViewportX11(Delegate* delegate) : delegate_(delegate) {
- }
+ explicit PlatformViewportX11(Delegate* delegate) : delegate_(delegate) {}
~PlatformViewportX11() override {
// Destroy the platform-window while |this| is still alive.
@@ -160,7 +159,9 @@ class PlatformViewportX11 : public PlatformViewport,
};
// static
-scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate) {
+scoped_ptr<PlatformViewport> PlatformViewport::Create(
+ mojo::ApplicationImpl* application_,
+ Delegate* delegate) {
return make_scoped_ptr(new PlatformViewportX11(delegate));
}
« no previous file with comments | « services/native_viewport/platform_viewport_stub.cc ('k') | shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698