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

Side by Side Diff: ui/events/test/events_test_utils.cc

Issue 262483003: Implementation of the Touch Exploration Mode - Part I (ui) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event_source
Patch Set: Addressing oshima@'s feedback Created 6 years, 7 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
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/ui_unittests.gyp » ('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/test/events_test_utils.h" 5 #include "ui/events/test/events_test_utils.h"
6 6
7 #include "ui/events/event_source.h"
8
7 namespace ui { 9 namespace ui {
8 10
9 EventTestApi::EventTestApi(Event* event) : event_(event) {} 11 EventTestApi::EventTestApi(Event* event) : event_(event) {}
10 EventTestApi::~EventTestApi() {} 12 EventTestApi::~EventTestApi() {}
11 13
12 LocatedEventTestApi::LocatedEventTestApi(LocatedEvent* event) 14 LocatedEventTestApi::LocatedEventTestApi(LocatedEvent* event)
13 : EventTestApi(event), 15 : EventTestApi(event),
14 located_event_(event) {} 16 located_event_(event) {}
15 LocatedEventTestApi::~LocatedEventTestApi() {} 17 LocatedEventTestApi::~LocatedEventTestApi() {}
16 18
17 EventTargetTestApi::EventTargetTestApi(EventTarget* target) 19 EventTargetTestApi::EventTargetTestApi(EventTarget* target)
18 : target_(target) {} 20 : target_(target) {}
19 21
20 EventSourceTestApi::EventSourceTestApi(EventSource* event_source) 22 EventSourceTestApi::EventSourceTestApi(EventSource* event_source)
21 : event_source_(event_source) { 23 : event_source_(event_source) {
22 DCHECK(event_source); 24 DCHECK(event_source);
23 } 25 }
24 26
25 EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) { 27 EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) {
26 return event_source_->SendEventToProcessor(event); 28 return event_source_->SendEventToProcessor(event);
27 } 29 }
28 30
29 } // namespace ui 31 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/ui_unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698