| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "KeyboardEventManager.h" | 5 #include "KeyboardEventManager.h" |
| 6 | 6 |
| 7 #include "core/dom/DocumentUserGestureToken.h" | 7 #include "core/dom/DocumentUserGestureToken.h" |
| 8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
| 9 #include "core/editing/Editor.h" | 9 #include "core/editing/Editor.h" |
| 10 #include "core/events/KeyboardEvent.h" | 10 #include "core/events/KeyboardEvent.h" |
| 11 #include "core/frame/LocalFrameClient.h" |
| 11 #include "core/html/HTMLDialogElement.h" | 12 #include "core/html/HTMLDialogElement.h" |
| 12 #include "core/input/EventHandler.h" | 13 #include "core/input/EventHandler.h" |
| 13 #include "core/input/EventHandlingUtil.h" | 14 #include "core/input/EventHandlingUtil.h" |
| 14 #include "core/input/InputDeviceCapabilities.h" | 15 #include "core/input/InputDeviceCapabilities.h" |
| 15 #include "core/input/ScrollManager.h" | 16 #include "core/input/ScrollManager.h" |
| 16 #include "core/layout/LayoutObject.h" | 17 #include "core/layout/LayoutObject.h" |
| 17 #include "core/layout/LayoutTextControlSingleLine.h" | 18 #include "core/layout/LayoutTextControlSingleLine.h" |
| 18 #include "core/loader/FrameLoaderClient.h" | |
| 19 #include "core/page/ChromeClient.h" | 19 #include "core/page/ChromeClient.h" |
| 20 #include "core/page/FocusController.h" | 20 #include "core/page/FocusController.h" |
| 21 #include "core/page/Page.h" | 21 #include "core/page/Page.h" |
| 22 #include "core/page/SpatialNavigation.h" | 22 #include "core/page/SpatialNavigation.h" |
| 23 #include "platform/KeyboardCodes.h" | 23 #include "platform/KeyboardCodes.h" |
| 24 #include "platform/UserGestureIndicator.h" | 24 #include "platform/UserGestureIndicator.h" |
| 25 #include "platform/WindowsKeyboardCodes.h" | 25 #include "platform/WindowsKeyboardCodes.h" |
| 26 #include "public/platform/WebInputEvent.h" | 26 #include "public/platform/WebInputEvent.h" |
| 27 | 27 |
| 28 #if OS(WIN) | 28 #if OS(WIN) |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 if (currentModifiers & ::cmdKey) | 455 if (currentModifiers & ::cmdKey) |
| 456 modifiers |= WebInputEvent::MetaKey; | 456 modifiers |= WebInputEvent::MetaKey; |
| 457 #else | 457 #else |
| 458 // TODO(crbug.com/538289): Implement on other platforms. | 458 // TODO(crbug.com/538289): Implement on other platforms. |
| 459 return static_cast<WebInputEvent::Modifiers>(0); | 459 return static_cast<WebInputEvent::Modifiers>(0); |
| 460 #endif | 460 #endif |
| 461 return static_cast<WebInputEvent::Modifiers>(modifiers); | 461 return static_cast<WebInputEvent::Modifiers>(modifiers); |
| 462 } | 462 } |
| 463 | 463 |
| 464 } // namespace blink | 464 } // namespace blink |
| OLD | NEW |