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

Side by Side Diff: ui/aura/test/ui_controls_factory_aurax11.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 <X11/keysym.h> 5 #include <X11/keysym.h>
6 #include <X11/Xlib.h> 6 #include <X11/Xlib.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 xevent.xbutton.type = ButtonRelease; 176 xevent.xbutton.type = ButtonRelease;
177 PostEventToWindowTreeHost(xevent, host_); 177 PostEventToWindowTreeHost(xevent, host_);
178 button_down_mask = (button_down_mask | xbutton->state) ^ xbutton->state; 178 button_down_mask = (button_down_mask | xbutton->state) ^ xbutton->state;
179 } 179 }
180 RunClosureAfterAllPendingUIEvents(closure); 180 RunClosureAfterAllPendingUIEvents(closure);
181 return true; 181 return true;
182 } 182 }
183 bool SendMouseClick(MouseButton type) override { 183 bool SendMouseClick(MouseButton type) override {
184 return SendMouseEvents(type, UP | DOWN); 184 return SendMouseEvents(type, UP | DOWN);
185 } 185 }
186 bool SendTouchEvents(int action, int num, int x, int y) override {
187 NOTIMPLEMENTED();
188 return false;
189 }
186 void RunClosureAfterAllPendingUIEvents( 190 void RunClosureAfterAllPendingUIEvents(
187 const base::Closure& closure) override { 191 const base::Closure& closure) override {
188 if (closure.is_null()) 192 if (closure.is_null())
189 return; 193 return;
190 static XEvent* marker_event = NULL; 194 static XEvent* marker_event = NULL;
191 if (!marker_event) { 195 if (!marker_event) {
192 marker_event = new XEvent(); 196 marker_event = new XEvent();
193 marker_event->xclient.type = ClientMessage; 197 marker_event->xclient.type = ClientMessage;
194 marker_event->xclient.display = NULL; 198 marker_event->xclient.display = NULL;
195 marker_event->xclient.window = None; 199 marker_event->xclient.window = None;
(...skipping 28 matching lines...) Expand all
224 }; 228 };
225 229
226 } // namespace 230 } // namespace
227 231
228 UIControlsAura* CreateUIControlsAura(WindowTreeHost* host) { 232 UIControlsAura* CreateUIControlsAura(WindowTreeHost* host) {
229 return new UIControlsX11(host); 233 return new UIControlsX11(host);
230 } 234 }
231 235
232 } // namespace test 236 } // namespace test
233 } // namespace aura 237 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698