Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef KeyboardEventManager_h | |
| 6 #define KeyboardEventManager_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "platform/PlatformEvent.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 #include "platform/heap/Visitor.h" | |
| 12 #include "public/platform/WebFocusType.h" | |
| 13 #include "public/platform/WebInputEventResult.h" | |
| 14 #include "wtf/Allocator.h" | |
| 15 | |
| 16 namespace blink { | |
| 17 | |
| 18 class KeyboardEvent; | |
| 19 class LocalFrame; | |
| 20 class PlatformKeyboardEvent; | |
| 21 class ScrollManager; | |
| 22 | |
| 23 class CORE_EXPORT KeyboardEventManager { | |
| 24 DISALLOW_NEW(); | |
| 25 public: | |
| 26 explicit KeyboardEventManager(LocalFrame*); | |
|
dtapuska
2016/06/03 20:13:39
Disallow copy?
Can't the KeyboardEventManager hav
Navid Zolghadr
2016/06/03 20:18:51
Sure. Will do.
Navid Zolghadr
2016/06/06 20:21:49
Done.
| |
| 27 ~KeyboardEventManager(); | |
| 28 DECLARE_TRACE(); | |
| 29 | |
| 30 static PlatformEvent::Modifiers accessKeyModifiers(); | |
| 31 | |
| 32 bool handleAccessKey(const PlatformKeyboardEvent&); | |
| 33 WebInputEventResult keyEvent(const PlatformKeyboardEvent&, ScrollManager*); | |
| 34 void defaultKeyboardEventHandler(KeyboardEvent*, ScrollManager*, Node*); | |
| 35 | |
| 36 void capsLockStateMayHaveChanged(); | |
| 37 | |
| 38 private: | |
| 39 | |
| 40 void defaultSpaceEventHandler(KeyboardEvent*, ScrollManager*, Node*); | |
| 41 void defaultBackspaceEventHandler(KeyboardEvent*); | |
| 42 void defaultTabEventHandler(KeyboardEvent*); | |
| 43 void defaultEscapeEventHandler(KeyboardEvent*); | |
| 44 void defaultArrowEventHandler(WebFocusType, KeyboardEvent*); | |
| 45 | |
| 46 // NOTE: If adding a new field to this class please ensure that it is | |
| 47 // cleared in |PointerEventManager::clear()|. | |
| 48 | |
| 49 const Member<LocalFrame> m_frame; | |
| 50 }; | |
| 51 | |
| 52 } // namespace blink | |
| 53 | |
| 54 #endif // KeyboardEventManager_h | |
| OLD | NEW |