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

Side by Side Diff: mojo/examples/aura_demo/aura_demo.cc

Issue 338353006: Changes routing of input events in view manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698