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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2290313002: Remove PlatformKeyboardEvent (Closed)
Patch Set: One more fix Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 1ad9d52e4b0ab895f6ed3038fdbd1319acecf889..474763c1d0db5afb481283dd8391ed70c217415f 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -94,6 +94,7 @@
#include "core/html/shadow/ShadowElementNames.h"
#include "core/html/shadow/TextControlInnerElements.h"
#include "core/input/EventHandler.h"
+#include "core/input/KeyboardEventManager.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InstanceCounters.h"
#include "core/inspector/MainThreadDebugger.h"
@@ -130,7 +131,6 @@
#include "platform/Cursor.h"
#include "platform/Language.h"
#include "platform/LayoutLocale.h"
-#include "platform/PlatformKeyboardEvent.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/TraceEvent.h"
#include "platform/geometry/IntRect.h"
@@ -242,7 +242,7 @@ void Internals::resetToConsistentState(Page* page)
scrollingCoordinator->reset();
page->deprecatedLocalMainFrame()->view()->clear();
- PlatformKeyboardEvent::setCurrentCapsLockState(PlatformKeyboardEvent::OverrideCapsLockState::Default);
+ KeyboardEventManager::setCurrentCapsLockState(OverrideCapsLockState::Default);
}
Internals::Internals(ScriptState* scriptState)
@@ -2567,8 +2567,7 @@ ClientRectList* Internals::outlineRects(Element* element)
void Internals::setCapsLockState(bool enabled)
{
- PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
- PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent::OverrideCapsLockState::Off);
+ KeyboardEventManager::setCurrentCapsLockState(enabled ? OverrideCapsLockState::On : OverrideCapsLockState::Off);
}
bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible)

Powered by Google App Engine
This is Rietveld 408576698