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

Side by Side Diff: ui/aura/window_event_dispatcher.cc

Issue 225143007: First crack at implementing the touch explaration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/aura/window_event_dispatcher.h" 5 #include "ui/aura/window_event_dispatcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ui::EF_NONE); 155 ui::EF_NONE);
156 DispatchDetails details = 156 DispatchDetails details =
157 DispatchMouseEnterOrExit(event, ui::ET_MOUSE_EXITED); 157 DispatchMouseEnterOrExit(event, ui::ET_MOUSE_EXITED);
158 if (details.dispatcher_destroyed) 158 if (details.dispatcher_destroyed)
159 return; 159 return;
160 } 160 }
161 161
162 void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event, 162 void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event,
163 Window* window, 163 Window* window,
164 ui::EventResult result) { 164 ui::EventResult result) {
165 LOG(ERROR) << "WED::ProcessedTouchEvent, type=" << event->type();
165 scoped_ptr<ui::GestureRecognizer::Gestures> gestures; 166 scoped_ptr<ui::GestureRecognizer::Gestures> gestures;
166 gestures.reset(ui::GestureRecognizer::Get()-> 167 gestures.reset(ui::GestureRecognizer::Get()->
167 ProcessTouchEventForGesture(*event, result, window)); 168 ProcessTouchEventForGesture(*event, result, window));
168 DispatchDetails details = ProcessGestures(gestures.get()); 169 DispatchDetails details = ProcessGestures(gestures.get());
169 if (details.dispatcher_destroyed) 170 if (details.dispatcher_destroyed)
170 return; 171 return;
171 } 172 }
172 173
173 void WindowEventDispatcher::HoldPointerMoves() { 174 void WindowEventDispatcher::HoldPointerMoves() {
174 if (!move_hold_count_) 175 if (!move_hold_count_)
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 break; 861 break;
861 862
862 default: 863 default:
863 NOTREACHED(); 864 NOTREACHED();
864 break; 865 break;
865 } 866 }
866 PreDispatchLocatedEvent(target, event); 867 PreDispatchLocatedEvent(target, event);
867 } 868 }
868 869
869 } // namespace aura 870 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698