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

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

Issue 240333007: wip: Second crack at implementing the touch exploration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a flag to disable the touch exploration mode. 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
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
22 EventSourceTestApi::EventSourceTestApi(EventSource* event_source)
23 : event_source_(event_source) {
24 DCHECK(event_source);
25 }
26
27 EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) {
28 return event_source_->SendEventToProcessor(event);
29 }
30
20 } // namespace ui 31 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698