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

Side by Side Diff: ui/events/event_source.cc

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 10 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 | « ui/events/event_source.h ('k') | ui/keyboard/keyboard_util.cc » ('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 "ui/events/event_source.h" 5 #include "ui/events/event_source.h"
6 6
7 #include "ui/events/event_processor.h" 7 #include "ui/events/event_processor.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 void EventSource::SendEventToProcessor(Event* event) { 11 EventDispatchDetails EventSource::SendEventToProcessor(Event* event) {
12 EventProcessor* processor = GetEventProcessor(); 12 EventProcessor* processor = GetEventProcessor();
13 CHECK(processor); 13 CHECK(processor);
14 EventDispatchDetails details = processor->OnEventFromSource(event); 14 return processor->OnEventFromSource(event);
15 if (details.dispatcher_destroyed)
16 return;
17 } 15 }
18 16
19 } // namespace ui 17 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event_source.h ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698