OLD | NEW |
| (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_ | |
OLD | NEW |