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

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

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 #ifndef KeyboardEventManager_h 5 #ifndef KeyboardEventManager_h
6 #define KeyboardEventManager_h 6 #define KeyboardEventManager_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/PlatformEvent.h" 9 #include "platform/PlatformEvent.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 17 matching lines...) Expand all
28 28
29 public: 29 public:
30 static const int kAccessKeyModifiers = 30 static const int kAccessKeyModifiers =
31 // TODO(crbug.com/618397): Add a settings to control this behavior. 31 // TODO(crbug.com/618397): Add a settings to control this behavior.
32 #if OS(MACOSX) 32 #if OS(MACOSX)
33 WebInputEvent::ControlKey | WebInputEvent::AltKey; 33 WebInputEvent::ControlKey | WebInputEvent::AltKey;
34 #else 34 #else
35 WebInputEvent::AltKey; 35 WebInputEvent::AltKey;
36 #endif 36 #endif
37 37
38 KeyboardEventManager(LocalFrame&, ScrollManager&); 38 KeyboardEventManager(LocalFrame*, ScrollManager*);
39 DECLARE_TRACE(); 39 DECLARE_TRACE();
40 40
41 bool handleAccessKey(const WebKeyboardEvent&); 41 bool handleAccessKey(const WebKeyboardEvent&);
42 WebInputEventResult keyEvent(const WebKeyboardEvent&); 42 WebInputEventResult keyEvent(const WebKeyboardEvent&);
43 void defaultKeyboardEventHandler(KeyboardEvent*, Node*); 43 void defaultKeyboardEventHandler(KeyboardEvent*, Node*);
44 44
45 void capsLockStateMayHaveChanged(); 45 void capsLockStateMayHaveChanged();
46 static WebInputEvent::Modifiers getCurrentModifierState(); 46 static WebInputEvent::Modifiers getCurrentModifierState();
47 static bool currentCapsLockState(); 47 static bool currentCapsLockState();
48 48
49 private: 49 private:
50 friend class Internals; 50 friend class Internals;
51 // Allows overriding the current caps lock state for testing purposes. 51 // Allows overriding the current caps lock state for testing purposes.
52 static void setCurrentCapsLockState(OverrideCapsLockState); 52 static void setCurrentCapsLockState(OverrideCapsLockState);
53 53
54 void defaultSpaceEventHandler(KeyboardEvent*, Node*); 54 void defaultSpaceEventHandler(KeyboardEvent*, Node*);
55 void defaultBackspaceEventHandler(KeyboardEvent*); 55 void defaultBackspaceEventHandler(KeyboardEvent*);
56 void defaultTabEventHandler(KeyboardEvent*); 56 void defaultTabEventHandler(KeyboardEvent*);
57 void defaultEscapeEventHandler(KeyboardEvent*); 57 void defaultEscapeEventHandler(KeyboardEvent*);
58 void defaultArrowEventHandler(KeyboardEvent*, Node*); 58 void defaultArrowEventHandler(KeyboardEvent*, Node*);
59 59
60 const Member<LocalFrame> m_frame; 60 const Member<LocalFrame> m_frame;
61 61
62 Member<ScrollManager> m_scrollManager; 62 Member<ScrollManager> m_scrollManager;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // KeyboardEventManager_h 67 #endif // KeyboardEventManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/GestureManager.cpp ('k') | third_party/WebKit/Source/core/input/KeyboardEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698