| OLD | NEW |
| 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_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
| 6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 6 #define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "mojo/public/bindings/lib/remote_ptr.h" | 10 #include "mojo/public/bindings/lib/remote_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual void Open() OVERRIDE; | 30 virtual void Open() OVERRIDE; |
| 31 virtual void Close() OVERRIDE; | 31 virtual void Close() OVERRIDE; |
| 32 virtual void CreateGLES2Context( | 32 virtual void CreateGLES2Context( |
| 33 ScopedMessagePipeHandle gles2_client) OVERRIDE; | 33 ScopedMessagePipeHandle gles2_client) OVERRIDE; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // Overridden from services::NativeViewportDelegate: | 36 // Overridden from services::NativeViewportDelegate: |
| 37 virtual void OnResized(const gfx::Size& size) OVERRIDE; | 37 virtual void OnResized(const gfx::Size& size) OVERRIDE; |
| 38 virtual void OnAcceleratedWidgetAvailable( | 38 virtual void OnAcceleratedWidgetAvailable( |
| 39 gfx::AcceleratedWidget widget) OVERRIDE; | 39 gfx::AcceleratedWidget widget) OVERRIDE; |
| 40 virtual bool OnEvent(ui::Event* event) OVERRIDE; | 40 virtual bool OnEvent(ui::Event* ui_event) OVERRIDE; |
| 41 virtual void OnDestroyed() OVERRIDE; | 41 virtual void OnDestroyed() OVERRIDE; |
| 42 | 42 |
| 43 void CreateGLES2ContextIfNeeded(); | 43 void CreateGLES2ContextIfNeeded(); |
| 44 | 44 |
| 45 shell::Context* context_; | 45 shell::Context* context_; |
| 46 gfx::AcceleratedWidget widget_; | 46 gfx::AcceleratedWidget widget_; |
| 47 scoped_ptr<services::NativeViewport> native_viewport_; | 47 scoped_ptr<services::NativeViewport> native_viewport_; |
| 48 scoped_ptr<GLES2Impl> gles2_; | 48 scoped_ptr<GLES2Impl> gles2_; |
| 49 | 49 |
| 50 RemotePtr<NativeViewportClient> client_; | 50 RemotePtr<NativeViewportClient> client_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); | 52 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace services | 55 } // namespace services |
| 56 } // namespace mojo | 56 } // namespace mojo |
| 57 | 57 |
| 58 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ | 58 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ |
| OLD | NEW |