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

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

Issue 109103003: Mojo: abstract interface implementation from generated Stub classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix build Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_ 5 #ifndef MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
6 #define MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_ 6 #define MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "mojo/examples/sample_app/spinning_cube.h" 10 #include "mojo/examples/sample_app/spinning_cube.h"
11 #include "mojo/public/bindings/lib/remote_ptr.h" 11 #include "mojo/public/bindings/lib/remote_ptr.h"
12 #include "mojom/gles2.h" 12 #include "mojom/gles2.h"
13 #include "mojom/native_viewport.h" 13 #include "mojom/native_viewport.h"
14 #include "ui/gfx/point_f.h" 14 #include "ui/gfx/point_f.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace examples { 17 namespace examples {
18 18
19 class GLES2ClientImpl : public GLES2ClientStub { 19 class GLES2ClientImpl : public GLES2Client {
20 public: 20 public:
21 explicit GLES2ClientImpl(ScopedMessagePipeHandle pipe); 21 explicit GLES2ClientImpl(ScopedMessagePipeHandle pipe);
22 virtual ~GLES2ClientImpl(); 22 virtual ~GLES2ClientImpl();
23 23
24 void HandleInputEvent(const Event& event); 24 void HandleInputEvent(const Event& event);
25 25
26 private: 26 private:
27 virtual void DidCreateContext(uint64_t encoded, 27 virtual void DidCreateContext(uint64_t encoded,
28 uint32_t width, 28 uint32_t width,
29 uint32_t height) MOJO_OVERRIDE; 29 uint32_t height) MOJO_OVERRIDE;
(...skipping 11 matching lines...) Expand all
41 41
42 RemotePtr<GLES2> service_; 42 RemotePtr<GLES2> service_;
43 43
44 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl); 44 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl);
45 }; 45 };
46 46
47 } // namespace examples 47 } // namespace examples
48 } // namespace mojo 48 } // namespace mojo
49 49
50 #endif // MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_ 50 #endif // MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/examples/compositor_app/gles2_client_impl.cc ('k') | mojo/examples/sample_app/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698