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

Side by Side Diff: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp

Issue 2541073004: ABANDONED CL: Revert of Move EventHandler timers to per-frame task queues. (Closed)
Patch Set: Created 4 years 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 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"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 break; 116 break;
117 default: 117 default:
118 return false; 118 return false;
119 } 119 }
120 120
121 return true; 121 return true;
122 } 122 }
123 123
124 } // namespace 124 } // namespace
125 125
126 KeyboardEventManager::KeyboardEventManager(LocalFrame& frame, 126 KeyboardEventManager::KeyboardEventManager(LocalFrame* frame,
127 ScrollManager& scrollManager) 127 ScrollManager* scrollManager)
128 : m_frame(frame), m_scrollManager(scrollManager) {} 128 : m_frame(frame), m_scrollManager(scrollManager) {}
129 129
130 DEFINE_TRACE(KeyboardEventManager) { 130 DEFINE_TRACE(KeyboardEventManager) {
131 visitor->trace(m_frame); 131 visitor->trace(m_frame);
132 visitor->trace(m_scrollManager); 132 visitor->trace(m_scrollManager);
133 } 133 }
134 134
135 bool KeyboardEventManager::handleAccessKey(const WebKeyboardEvent& evt) { 135 bool KeyboardEventManager::handleAccessKey(const WebKeyboardEvent& evt) {
136 // FIXME: Ignoring the state of Shift key is what neither IE nor Firefox do. 136 // FIXME: Ignoring the state of Shift key is what neither IE nor Firefox do.
137 // IE matches lower and upper case access keys regardless of Shift key state - 137 // IE matches lower and upper case access keys regardless of Shift key state -
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 if (currentModifiers & ::cmdKey) 452 if (currentModifiers & ::cmdKey)
453 modifiers |= WebInputEvent::MetaKey; 453 modifiers |= WebInputEvent::MetaKey;
454 #else 454 #else
455 // TODO(crbug.com/538289): Implement on other platforms. 455 // TODO(crbug.com/538289): Implement on other platforms.
456 return static_cast<WebInputEvent::Modifiers>(0); 456 return static_cast<WebInputEvent::Modifiers>(0);
457 #endif 457 #endif
458 return static_cast<WebInputEvent::Modifiers>(modifiers); 458 return static_cast<WebInputEvent::Modifiers>(modifiers);
459 } 459 }
460 460
461 } // namespace blink 461 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/KeyboardEventManager.h ('k') | third_party/WebKit/Source/core/input/MouseEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698