Chromium Code Reviews| 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 75% |
| copy from third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl |
| copy to third_party/WebKit/Source/core/frame/VisualViewport.idl |
| index 48f78b8c79ae221bd177c2ca7abf37edab45b9cd..0521b7a44437c8eb31dd4a02b277550b588961cc 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://discourse.wicg.io/t/explicit-api-for-visual-viewport/ |
|
Rick Byers
2016/03/24 19:07:54
nit: link directly to the explainer instead (since
ymalik
2016/03/29 19:17:28
Done.
|
| + |
| [ |
| - 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; |
| }; |