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

Side by Side Diff: ui/base/test/ui_controls_aura.cc

Issue 2904113002: Replacing WM_TOUCH with WM_POINTER for touch events on Wins 8+ (Closed)
Patch Set: wm touch Created 3 years, 5 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/base/test/ui_controls_aura.h" 5 #include "ui/base/test/ui_controls_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace ui_controls { 9 namespace ui_controls {
10 namespace { 10 namespace {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return instance_->SendMouseEventsNotifyWhenDone(type, state, task); 69 return instance_->SendMouseEventsNotifyWhenDone(type, state, task);
70 } 70 }
71 71
72 // static 72 // static
73 bool SendMouseClick(MouseButton type) { 73 bool SendMouseClick(MouseButton type) {
74 CHECK(g_ui_controls_enabled); 74 CHECK(g_ui_controls_enabled);
75 return instance_->SendMouseClick(type); 75 return instance_->SendMouseClick(type);
76 } 76 }
77 77
78 // static 78 // static
79 bool SendTouchEventsNotifyWhenDone(int action,
80 int num,
81 int x,
82 int y,
83 const base::Closure& task) {
84 CHECK(g_ui_controls_enabled);
85 return instance_->SendTouchEventsNotifyWhenDone(action, num, x, y, task);
86 }
87
88 // static
79 void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) { 89 void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) {
80 instance_->RunClosureAfterAllPendingUIEvents(closure); 90 instance_->RunClosureAfterAllPendingUIEvents(closure);
81 } 91 }
82 92
83 UIControlsAura::UIControlsAura() { 93 UIControlsAura::UIControlsAura() {
84 } 94 }
85 95
86 UIControlsAura::~UIControlsAura() { 96 UIControlsAura::~UIControlsAura() {
87 } 97 }
88 98
89 // static. declared in ui_controls.h 99 // static. declared in ui_controls.h
90 void InstallUIControlsAura(UIControlsAura* instance) { 100 void InstallUIControlsAura(UIControlsAura* instance) {
91 delete instance_; 101 delete instance_;
92 instance_ = instance; 102 instance_ = instance;
93 } 103 }
94 104
95 } // namespace ui_controls 105 } // namespace ui_controls
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698