summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h b/chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h
index c628b7628d7..99bfe0487ca 100644
--- a/chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h
+++ b/chromium/third_party/blink/renderer/modules/keyboard/keyboard_layout.h
@@ -30,8 +30,15 @@ class KeyboardLayout final : public GarbageCollectedFinalized<KeyboardLayout>,
void Trace(blink::Visitor*) override;
private:
+ // Returns true if the local frame is attached to the renderer.
+ bool IsLocalFrameAttached();
+
+ // Returns true if |service_| is initialized and ready to be called.
bool EnsureServiceConnected();
+ // Returns true if the current frame is a top-level browsing context.
+ bool CalledFromSupportedContext(ExecutionContext*);
+
void GotKeyboardLayoutMap(ScriptPromiseResolver*,
mojom::blink::GetKeyboardLayoutMapResultPtr);