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

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
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..0fa851be27b33ace002c5b107ffc8f542bfb7547 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.
@@ -151,6 +150,11 @@ class PlatformViewportX11 : public PlatformViewport,
void OnActivationChanged(bool active) override {}
+ bool NewNativeSurfaceAvailable() override {
+ NOTIMPLEMENTED() << "Native surface attaching not implemented.";
+ return false;
+ }
+
scoped_ptr<ui::PlatformEventSource> event_source_;
scoped_ptr<ui::PlatformWindow> platform_window_;
Delegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698