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

Unified Diff: services/native_viewport/native_viewport_impl.h

Issue 2011053003: Make PlatformViewport and NativeViewportImpl use Shell* instead of ApplicationImpl*. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix android Created 4 years, 7 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/app_delegate.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 bad5f2a3b43402a9d9ab6eda674ffdffa0848fd3..d1652dbfeef85f185cc70a422b92147264558c54 100644
--- a/services/native_viewport/native_viewport_impl.h
+++ b/services/native_viewport/native_viewport_impl.h
@@ -21,7 +21,7 @@ class GpuState;
}
namespace mojo {
-class ApplicationImpl;
+class Shell;
}
namespace ui {
@@ -37,7 +37,9 @@ namespace native_viewport {
class NativeViewportImpl : public mojo::NativeViewport,
public PlatformViewport::Delegate {
public:
- NativeViewportImpl(mojo::ApplicationImpl* application,
+ // TODO(vtl): Maybe this should take an
+ // |InterfaceHandle<ApplicationConnector>| instead of a |Shell*|.
+ NativeViewportImpl(mojo::Shell* shell,
bool is_headless,
const scoped_refptr<gles2::GpuState>& gpu_state,
mojo::InterfaceRequest<mojo::NativeViewport> request);
@@ -71,8 +73,8 @@ class NativeViewportImpl : public mojo::NativeViewport,
// with.
void AckEvent(int32 pointer_id);
- mojo::ApplicationImpl* application_;
- bool is_headless_;
+ mojo::Shell* const shell_;
+ const bool is_headless_;
scoped_ptr<PlatformViewport> platform_viewport_;
OnscreenContextProvider context_provider_;
bool sent_metrics_;
« no previous file with comments | « services/native_viewport/app_delegate.cc ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698