| 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;
|
| };
|
|
|