| 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 #include <stdio.h> | 5 #include <stdio.h> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "mojo/aura/context_factory_mojo.h" | 9 #include "mojo/aura/context_factory_mojo.h" |
| 10 #include "mojo/aura/screen_mojo.h" | 10 #include "mojo/aura/screen_mojo.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 virtual void OnNodeViewReplaced(uint32_t node, | 180 virtual void OnNodeViewReplaced(uint32_t node, |
| 181 uint32_t new_view_id, | 181 uint32_t new_view_id, |
| 182 uint32_t old_view_id) OVERRIDE { | 182 uint32_t old_view_id) OVERRIDE { |
| 183 } | 183 } |
| 184 virtual void OnViewDeleted(uint32_t view) OVERRIDE { | 184 virtual void OnViewDeleted(uint32_t view) OVERRIDE { |
| 185 } | 185 } |
| 186 virtual void OnViewInputEvent(uint32_t view_id, | 186 virtual void OnViewInputEvent(uint32_t view_id, |
| 187 EventPtr event, | 187 EventPtr event, |
| 188 const Callback<void()>& callback) OVERRIDE { | 188 const Callback<void()>& callback) OVERRIDE { |
| 189 } | 189 } |
| 190 virtual void DispatchOnViewInputEvent(uint32_t view_id, |
| 191 EventPtr event) OVERRIDE { |
| 192 } |
| 190 | 193 |
| 191 AuraDemo* aura_demo_; | 194 AuraDemo* aura_demo_; |
| 192 | 195 |
| 193 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 196 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 class AuraDemo : public Application, public WindowTreeHostMojoDelegate { | 199 class AuraDemo : public Application, public WindowTreeHostMojoDelegate { |
| 197 public: | 200 public: |
| 198 AuraDemo() | 201 AuraDemo() |
| 199 : view_manager_(NULL), | 202 : view_manager_(NULL), |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 } | 313 } |
| 311 | 314 |
| 312 } // namespace examples | 315 } // namespace examples |
| 313 | 316 |
| 314 // static | 317 // static |
| 315 Application* Application::Create() { | 318 Application* Application::Create() { |
| 316 return new examples::AuraDemo(); | 319 return new examples::AuraDemo(); |
| 317 } | 320 } |
| 318 | 321 |
| 319 } // namespace mojo | 322 } // namespace mojo |
| OLD | NEW |