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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.idl

Issue 1814013002: Visual viewport API initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/frame/VisualViewport.idl
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl b/third_party/WebKit/Source/core/frame/VisualViewport.idl
similarity index 76%
copy from third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl
copy to third_party/WebKit/Source/core/frame/VisualViewport.idl
index 48f78b8c79ae221bd177c2ca7abf37edab45b9cd..eafa02e602127ee459ecbed0f00484684756c315 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2016 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,13 +23,18 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+ // Visual Viewport API.
+ // WICG proposal: https://github.com/WICG/ViewportAPI
+
[
- Constructor,
+ RuntimeEnabled=VisualViewportAPI,
GarbageCollected,
- NoInterfaceObject,
-] interface SpeechGrammarList {
- readonly attribute unsigned long length;
- getter SpeechGrammar item(unsigned long index);
- [CallWith=ExecutionContext] void addFromUri(DOMString src, optional float weight);
- void addFromString(DOMString string, optional float weight);
+] interface VisualViewport {
+ attribute double scrollTop;
+ attribute double scrollLeft;
+
+ readonly attribute double clientWidth;
+ readonly attribute double clientHeight;
+
+ readonly attribute double pageScale;
};
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698