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

Unified Diff: services/native_viewport/native_viewport_impl.h

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/main.cc ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/native_viewport_impl.h
diff --git a/services/native_viewport/native_viewport_impl.h b/services/native_viewport/native_viewport_impl.h
index 15de028f5f3119c36ccf106e00e74cd5c8a8aa5a..bd9da3c30cda8823bc1cff894a9ee94ea79b69b3 100644
--- a/services/native_viewport/native_viewport_impl.h
+++ b/services/native_viewport/native_viewport_impl.h
@@ -20,6 +20,10 @@ namespace gles2 {
class GpuState;
}
+namespace mojo {
+class ApplicationImpl;
+}
+
namespace ui {
class Event;
}
@@ -33,7 +37,8 @@ namespace native_viewport {
class NativeViewportImpl : public mojo::NativeViewport,
public PlatformViewport::Delegate {
public:
- NativeViewportImpl(bool is_headless,
+ NativeViewportImpl(mojo::ApplicationImpl* application,
+ bool is_headless,
const scoped_refptr<gles2::GpuState>& gpu_state,
mojo::InterfaceRequest<mojo::NativeViewport> request);
~NativeViewportImpl() override;
@@ -65,6 +70,7 @@ class NativeViewportImpl : public mojo::NativeViewport,
// with.
void AckEvent(int32 pointer_id);
+ mojo::ApplicationImpl* application_;
bool is_headless_;
scoped_ptr<PlatformViewport> platform_viewport_;
OnscreenContextProvider context_provider_;
« no previous file with comments | « services/native_viewport/main.cc ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698