| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "mojo/examples/aura_demo/window_tree_host_mojo.h" | 5 #include "mojo/examples/aura_demo/window_tree_host_mojo.h" |
| 6 | 6 |
| 7 #include "mojo/examples/aura_demo/demo_context_factory.h" | 7 #include "mojo/examples/aura_demo/demo_context_factory.h" |
| 8 #include "mojo/public/c/gles2/gles2.h" | 8 #include "mojo/public/c/gles2/gles2.h" |
| 9 #include "mojo/public/cpp/bindings/allocation_scope.h" | 9 #include "mojo/public/cpp/bindings/allocation_scope.h" |
| 10 #include "mojo/services/native_viewport/geometry_conversions.h" | 10 #include "mojo/services/native_viewport/geometry_conversions.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 CHECK(context_factory_) << "No GL bindings."; | 49 CHECK(context_factory_) << "No GL bindings."; |
| 50 | 50 |
| 51 native_viewport_->CreateGLES2Context(gles2_client_handle.Pass()); | 51 native_viewport_->CreateGLES2Context(gles2_client_handle.Pass()); |
| 52 } | 52 } |
| 53 | 53 |
| 54 WindowTreeHostMojo::~WindowTreeHostMojo() {} | 54 WindowTreeHostMojo::~WindowTreeHostMojo() {} |
| 55 | 55 |
| 56 //////////////////////////////////////////////////////////////////////////////// | 56 //////////////////////////////////////////////////////////////////////////////// |
| 57 // WindowTreeHostMojo, aura::WindowTreeHost implementation: | 57 // WindowTreeHostMojo, aura::WindowTreeHost implementation: |
| 58 | 58 |
| 59 ui::EventSource* WindowTreeHostMojo::GetEventSource() { |
| 60 return this; |
| 61 } |
| 62 |
| 59 gfx::AcceleratedWidget WindowTreeHostMojo::GetAcceleratedWidget() { | 63 gfx::AcceleratedWidget WindowTreeHostMojo::GetAcceleratedWidget() { |
| 60 NOTIMPLEMENTED() << "GetAcceleratedWidget"; | 64 NOTIMPLEMENTED() << "GetAcceleratedWidget"; |
| 61 return gfx::kNullAcceleratedWidget; | 65 return gfx::kNullAcceleratedWidget; |
| 62 } | 66 } |
| 63 | 67 |
| 64 void WindowTreeHostMojo::Show() { | 68 void WindowTreeHostMojo::Show() { |
| 65 window()->Show(); | 69 window()->Show(); |
| 66 native_viewport_->Show(); | 70 native_viewport_->Show(); |
| 67 } | 71 } |
| 68 | 72 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 SendEventToProcessor(&ev); | 172 SendEventToProcessor(&ev); |
| 169 break; | 173 break; |
| 170 } | 174 } |
| 171 // TODO(beng): touch, etc. | 175 // TODO(beng): touch, etc. |
| 172 } | 176 } |
| 173 callback.Run(); | 177 callback.Run(); |
| 174 }; | 178 }; |
| 175 | 179 |
| 176 } // namespace examples | 180 } // namespace examples |
| 177 } // namespace mojo | 181 } // namespace mojo |
| OLD | NEW |