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

Side by Side Diff: mojo/examples/sample_app/native_viewport_client_impl.h

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow Android to be built Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/common/handle_watcher.cc ('k') | mojo/examples/sample_app/native_viewport_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_EXAMPLES_SAMPLE_APP_NATIVE_VIEWPORT_CLIENT_IMPL_H_
6 #define MOJO_EXAMPLES_SAMPLE_APP_NATIVE_VIEWPORT_CLIENT_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/examples/sample_app/gles2_client_impl.h"
10 #include "mojo/public/bindings/lib/remote_ptr.h"
11 #include "mojom/native_viewport.h"
12
13 namespace mojo {
14 namespace examples {
15
16 class NativeViewportClientImpl : public NativeViewportClientStub {
17 public:
18 explicit NativeViewportClientImpl(ScopedMessagePipeHandle pipe);
19 virtual ~NativeViewportClientImpl();
20
21 void Open();
22
23 private:
24 virtual void OnCreated() MOJO_OVERRIDE;
25 virtual void OnDestroyed() MOJO_OVERRIDE;
26 virtual void OnEvent(const Event& event) MOJO_OVERRIDE;
27
28 scoped_ptr<GLES2ClientImpl> gles2_client_;
29
30 RemotePtr<NativeViewport> service_;
31
32 MOJO_DISALLOW_COPY_AND_ASSIGN(NativeViewportClientImpl);
33 };
34
35 } // namespace examples
36 } // namespace mojo
37
38 #endif // MOJO_EXAMPLES_SAMPLE_APP_NATIVE_VIEWPORT_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/common/handle_watcher.cc ('k') | mojo/examples/sample_app/native_viewport_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698