| Index: third_party/WebKit/Source/core/frame/Viewport.idl
|
| diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl b/third_party/WebKit/Source/core/frame/Viewport.idl
|
| similarity index 77%
|
| copy from third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl
|
| copy to third_party/WebKit/Source/core/frame/Viewport.idl
|
| index 48f78b8c79ae221bd177c2ca7abf37edab45b9cd..343408c4aa5e356b16675f99aeac2cfd5975e805 100644
|
| --- a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.idl
|
| +++ b/third_party/WebKit/Source/core/frame/Viewport.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.
|
| */
|
|
|
| + // Proposed Visual Viewport API.
|
| +
|
| [
|
| - Constructor,
|
| + RuntimeEnabled=VisualViewportAPI,
|
| + ImplementedAs=VisualViewport,
|
| 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 Viewport {
|
| + attribute double scrollTop;
|
| + attribute double scrollLeft;
|
| +
|
| + readonly attribute double clientWidth;
|
| + readonly attribute double clientHeight;
|
| +
|
| + readonly attribute double pageScale;
|
| };
|
|
|