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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2805763004: [System-Keyboard-Lock] Forward navigator functions to RenderFrameHost (Closed)
Patch Set: Resolve review comments Created 3 years, 8 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/loader/EmptyClients.cpp
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.cpp b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
index 9d56fd9012044bb1671b9812679802d4e843ecac..f3de8629e743154e0b4844ad14a1af3161bcfa24 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
@@ -37,6 +37,7 @@
#include "core/loader/DocumentLoader.h"
#include "platform/FileChooser.h"
#include "platform/FrameViewBase.h"
+#include "platform/KeyboardLocker.h"
#include "public/platform/Platform.h"
#include "public/platform/WebApplicationCacheHost.h"
#include "public/platform/WebMediaPlayer.h"
@@ -132,6 +133,14 @@ std::unique_ptr<WebFrameScheduler> EmptyChromeClient::CreateFrameScheduler(
return WTF::MakeUnique<EmptyFrameScheduler>();
}
+void EmptyChromeClient::RequestKeyLock(LocalFrame*,
+ PassRefPtr<KeyboardLocker> locker) {
+ DCHECK(locker);
+ locker->FinishLockRequest(
+ false,
+ WebString::FromASCII("EmptyChromeClient does not support key lock."));
+}
+
NavigationPolicy EmptyLocalFrameClient::DecidePolicyForNavigation(
const ResourceRequest&,
DocumentLoader*,

Powered by Google App Engine
This is Rietveld 408576698