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

Side by Side Diff: client/dom/frog/frog_dom.dart

Issue 8879007: Enable fullscreen API and file system API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 1236
1237 void revokeObjectURL(String url) native; 1237 void revokeObjectURL(String url) native;
1238 1238
1239 var dartObjectLocalStorage; 1239 var dartObjectLocalStorage;
1240 1240
1241 String get typeName() native; 1241 String get typeName() native;
1242 } 1242 }
1243 1243
1244 class DOMWindow native "@*DOMWindow" { 1244 class DOMWindow native "@*DOMWindow" {
1245 1245
1246 static final int PERSISTENT = 1;
1247
1248 static final int TEMPORARY = 0;
1249
1246 DOMApplicationCache applicationCache; 1250 DOMApplicationCache applicationCache;
1247 1251
1248 Navigator clientInformation; 1252 Navigator clientInformation;
1249 1253
1250 bool closed; 1254 bool closed;
1251 1255
1252 Console console; 1256 Console console;
1253 1257
1254 Crypto crypto; 1258 Crypto crypto;
1255 1259
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 void webkitCancelRequestAnimationFrame(int id) native; 1416 void webkitCancelRequestAnimationFrame(int id) native;
1413 1417
1414 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) native; 1418 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p) native;
1415 1419
1416 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) native; 1420 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p) native;
1417 1421
1418 void webkitPostMessage(String message, var targetOrigin_OR_transferList, [Stri ng targetOrigin = null]) native; 1422 void webkitPostMessage(String message, var targetOrigin_OR_transferList, [Stri ng targetOrigin = null]) native;
1419 1423
1420 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) native; 1424 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element) native;
1421 1425
1426 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback = null, ErrorCallback errorCallback = null]) native;
1427
1428 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
1429
1422 var dartObjectLocalStorage; 1430 var dartObjectLocalStorage;
1423 1431
1424 String get typeName() native; 1432 String get typeName() native;
1425 } 1433 }
1426 1434
1427 class DataTransferItem native "*DataTransferItem" { 1435 class DataTransferItem native "*DataTransferItem" {
1428 1436
1429 String kind; 1437 String kind;
1430 1438
1431 String type; 1439 String type;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 String readyState; 1646 String readyState;
1639 1647
1640 String referrer; 1648 String referrer;
1641 1649
1642 String selectedStylesheetSet; 1650 String selectedStylesheetSet;
1643 1651
1644 StyleSheetList styleSheets; 1652 StyleSheetList styleSheets;
1645 1653
1646 String title; 1654 String title;
1647 1655
1656 Element webkitCurrentFullScreenElement;
1657
1658 bool webkitFullScreenKeyboardInputAllowed;
1659
1648 bool webkitHidden; 1660 bool webkitHidden;
1649 1661
1662 bool webkitIsFullScreen;
1663
1650 String webkitVisibilityState; 1664 String webkitVisibilityState;
1651 1665
1652 String xmlEncoding; 1666 String xmlEncoding;
1653 1667
1654 bool xmlStandalone; 1668 bool xmlStandalone;
1655 1669
1656 String xmlVersion; 1670 String xmlVersion;
1657 1671
1658 Node adoptNode(Node source) native; 1672 Node adoptNode(Node source) native;
1659 1673
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 1735
1722 bool queryCommandState(String command) native; 1736 bool queryCommandState(String command) native;
1723 1737
1724 bool queryCommandSupported(String command) native; 1738 bool queryCommandSupported(String command) native;
1725 1739
1726 String queryCommandValue(String command) native; 1740 String queryCommandValue(String command) native;
1727 1741
1728 Element querySelector(String selectors) native; 1742 Element querySelector(String selectors) native;
1729 1743
1730 NodeList querySelectorAll(String selectors) native; 1744 NodeList querySelectorAll(String selectors) native;
1745
1746 void webkitCancelFullScreen() native;
1731 } 1747 }
1732 1748
1733 class DocumentFragment extends Node native "*DocumentFragment" { 1749 class DocumentFragment extends Node native "*DocumentFragment" {
1734 1750
1735 Element querySelector(String selectors) native; 1751 Element querySelector(String selectors) native;
1736 1752
1737 NodeList querySelectorAll(String selectors) native; 1753 NodeList querySelectorAll(String selectors) native;
1738 } 1754 }
1739 1755
1740 class DocumentType extends Node native "*DocumentType" { 1756 class DocumentType extends Node native "*DocumentType" {
1741 1757
1742 NamedNodeMap entities; 1758 NamedNodeMap entities;
1743 1759
1744 String internalSubset; 1760 String internalSubset;
1745 1761
1746 String name; 1762 String name;
1747 1763
1748 NamedNodeMap notations; 1764 NamedNodeMap notations;
1749 1765
1750 String publicId; 1766 String publicId;
1751 1767
1752 String systemId; 1768 String systemId;
1753 } 1769 }
1754 1770
1755 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 1771 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
1756 } 1772 }
1757 1773
1758 class Element extends Node native "Element" { 1774 class Element extends Node native "Element" {
1759 1775
1776 static final int ALLOW_KEYBOARD_INPUT = 1;
1777
1760 int childElementCount; 1778 int childElementCount;
1761 1779
1762 int clientHeight; 1780 int clientHeight;
1763 1781
1764 int clientLeft; 1782 int clientLeft;
1765 1783
1766 int clientTop; 1784 int clientTop;
1767 1785
1768 int clientWidth; 1786 int clientWidth;
1769 1787
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 1861
1844 void setAttribute(String name, String value) native; 1862 void setAttribute(String name, String value) native;
1845 1863
1846 void setAttributeNS(String namespaceURI, String qualifiedName, String value) n ative; 1864 void setAttributeNS(String namespaceURI, String qualifiedName, String value) n ative;
1847 1865
1848 Attr setAttributeNode(Attr newAttr) native; 1866 Attr setAttributeNode(Attr newAttr) native;
1849 1867
1850 Attr setAttributeNodeNS(Attr newAttr) native; 1868 Attr setAttributeNodeNS(Attr newAttr) native;
1851 1869
1852 bool webkitMatchesSelector(String selectors) native; 1870 bool webkitMatchesSelector(String selectors) native;
1871
1872 void webkitRequestFullScreen(int flags) native;
1853 } 1873 }
1854 1874
1855 class ElementTimeControl native "*ElementTimeControl" { 1875 class ElementTimeControl native "*ElementTimeControl" {
1856 1876
1857 void beginElement() native; 1877 void beginElement() native;
1858 1878
1859 void beginElementAt(num offset) native; 1879 void beginElementAt(num offset) native;
1860 1880
1861 void endElement() native; 1881 void endElement() native;
1862 1882
(...skipping 8851 matching lines...) Expand 10 before | Expand all | Expand 10 after
10714 10734
10715 void postMessage(String message, [List messagePorts = null]) native; 10735 void postMessage(String message, [List messagePorts = null]) native;
10716 10736
10717 void terminate() native; 10737 void terminate() native;
10718 10738
10719 void webkitPostMessage(String message, [List messagePorts = null]) native; 10739 void webkitPostMessage(String message, [List messagePorts = null]) native;
10720 } 10740 }
10721 10741
10722 class WorkerContext native "*WorkerContext" { 10742 class WorkerContext native "*WorkerContext" {
10723 10743
10744 static final int PERSISTENT = 1;
10745
10746 static final int TEMPORARY = 0;
10747
10724 WorkerLocation location; 10748 WorkerLocation location;
10725 10749
10726 WorkerNavigator navigator; 10750 WorkerNavigator navigator;
10727 10751
10728 WorkerContext self; 10752 WorkerContext self;
10729 10753
10730 NotificationCenter webkitNotifications; 10754 NotificationCenter webkitNotifications;
10731 10755
10732 DOMURL webkitURL; 10756 DOMURL webkitURL;
10733 10757
10734 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 10758 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
10735 10759
10736 void clearInterval(int handle) native; 10760 void clearInterval(int handle) native;
10737 10761
10738 void clearTimeout(int handle) native; 10762 void clearTimeout(int handle) native;
10739 10763
10740 void close() native; 10764 void close() native;
10741 10765
10742 bool dispatchEvent(Event evt) native; 10766 bool dispatchEvent(Event evt) native;
10743 10767
10744 void importScripts() native; 10768 void importScripts() native;
10745 10769
10746 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 10770 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
10747 10771
10748 int setInterval(TimeoutHandler handler, int timeout) native; 10772 int setInterval(TimeoutHandler handler, int timeout) native;
10749 10773
10750 int setTimeout(TimeoutHandler handler, int timeout) native; 10774 int setTimeout(TimeoutHandler handler, int timeout) native;
10751 10775
10776 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback = null, ErrorCallback errorCallback = null]) native;
10777
10778 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native;
10779
10780 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native;
10781
10782 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
10783
10752 var dartObjectLocalStorage; 10784 var dartObjectLocalStorage;
10753 10785
10754 String get typeName() native; 10786 String get typeName() native;
10755 } 10787 }
10756 10788
10757 class WorkerLocation native "*WorkerLocation" { 10789 class WorkerLocation native "*WorkerLocation" {
10758 10790
10759 String hash; 10791 String hash;
10760 10792
10761 String host; 10793 String host;
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
11300 startIndex = a.length - 1; 11332 startIndex = a.length - 1;
11301 } 11333 }
11302 for (int i = startIndex; i >= 0; i--) { 11334 for (int i = startIndex; i >= 0; i--) {
11303 if (a[i] == element) { 11335 if (a[i] == element) {
11304 return i; 11336 return i;
11305 } 11337 }
11306 } 11338 }
11307 return -1; 11339 return -1;
11308 } 11340 }
11309 } 11341 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698