OLD | NEW |
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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 if (details.dispatcher_destroyed) | 170 if (details.dispatcher_destroyed) |
171 return; | 171 return; |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint( | 175 DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint( |
176 Window* window, | 176 Window* window, |
177 const gfx::Point& point) { | 177 const gfx::Point& point) { |
178 ui::MouseEvent event(ui::ET_MOUSE_EXITED, point, point, ui::EventTimeForNow(), | 178 ui::MouseEvent event(ui::ET_MOUSE_EXITED, point, point, ui::EventTimeForNow(), |
179 ui::EF_NONE, ui::EF_NONE); | 179 ui::EF_NONE, ui::EF_NONE); |
| 180 event.set_only_for_ui_hover_state(true); |
180 return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED); | 181 return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED); |
181 } | 182 } |
182 | 183 |
183 void WindowEventDispatcher::ProcessedTouchEvent( | 184 void WindowEventDispatcher::ProcessedTouchEvent( |
184 uint32_t unique_event_id, | 185 uint32_t unique_event_id, |
185 Window* window, | 186 Window* window, |
186 ui::EventResult result, | 187 ui::EventResult result, |
187 bool is_source_touch_event_set_non_blocking) { | 188 bool is_source_touch_event_set_non_blocking) { |
188 ui::GestureRecognizer::Gestures gestures = | 189 ui::GestureRecognizer::Gestures gestures = |
189 ui::GestureRecognizer::Get()->AckTouchEvent( | 190 ui::GestureRecognizer::Get()->AckTouchEvent( |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 ui::KeyEvent* event) { | 942 ui::KeyEvent* event) { |
942 if (skip_ime_ || !host_->has_input_method() || | 943 if (skip_ime_ || !host_->has_input_method() || |
943 (event->flags() & ui::EF_IS_SYNTHESIZED)) | 944 (event->flags() & ui::EF_IS_SYNTHESIZED)) |
944 return DispatchDetails(); | 945 return DispatchDetails(); |
945 DispatchDetails details = host_->GetInputMethod()->DispatchKeyEvent(event); | 946 DispatchDetails details = host_->GetInputMethod()->DispatchKeyEvent(event); |
946 event->StopPropagation(); | 947 event->StopPropagation(); |
947 return details; | 948 return details; |
948 } | 949 } |
949 | 950 |
950 } // namespace aura | 951 } // namespace aura |
OLD | NEW |