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

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

Issue 316713002: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android 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/examples/sample_view_manager_app/DEPS » ('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/screen_mojo.h" 9 #include "mojo/aura/screen_mojo.h"
10 #include "mojo/examples/aura_demo/context_factory_view_manager.h" 10 #include "mojo/examples/aura_demo/context_factory_view_manager.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 virtual void OnNodeDeleted(uint32_t node, uint32_t server_change_id) 137 virtual void OnNodeDeleted(uint32_t node, uint32_t server_change_id)
138 OVERRIDE { 138 OVERRIDE {
139 } 139 }
140 virtual void OnNodeViewReplaced(uint32_t node, 140 virtual void OnNodeViewReplaced(uint32_t node,
141 uint32_t new_view_id, 141 uint32_t new_view_id,
142 uint32_t old_view_id) OVERRIDE { 142 uint32_t old_view_id) OVERRIDE {
143 } 143 }
144 virtual void OnViewDeleted(uint32_t view) OVERRIDE { 144 virtual void OnViewDeleted(uint32_t view) OVERRIDE {
145 } 145 }
146 virtual void OnViewInputEvent(uint32_t view_id,
147 EventPtr event,
148 const Callback<void()>& callback) OVERRIDE {
149 }
146 150
147 AuraDemo* aura_demo_; 151 AuraDemo* aura_demo_;
148 152
149 DISALLOW_COPY_AND_ASSIGN(IViewManagerClientImpl); 153 DISALLOW_COPY_AND_ASSIGN(IViewManagerClientImpl);
150 }; 154 };
151 155
152 class AuraDemo : public Application { 156 class AuraDemo : public Application {
153 public: 157 public:
154 AuraDemo() { 158 AuraDemo() {
155 AddService<IViewManagerClientImpl>(this); 159 AddService<IViewManagerClientImpl>(this);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 236
233 } // namespace examples 237 } // namespace examples
234 238
235 // static 239 // static
236 Application* Application::Create() { 240 Application* Application::Create() {
237 return new examples::AuraDemo(); 241 return new examples::AuraDemo();
238 } 242 }
239 243
240 } // namespace mojo 244 } // namespace mojo
241 245
OLDNEW
« no previous file with comments | « no previous file | mojo/examples/sample_view_manager_app/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698