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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/workers/interfaces.idl

Issue 2886943007: Introduce NavigatorWebDriver interface
Patch Set: wip: need more tests Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // ----------------------------------------------------------------------------- 1 // -----------------------------------------------------------------------------
2 // DOM 2 // DOM
3 // ----------------------------------------------------------------------------- 3 // -----------------------------------------------------------------------------
4 [Exposed=(Window,Worker)] 4 [Exposed=(Window,Worker)]
5 interface EventTarget { 5 interface EventTarget {
6 void addEventListener(DOMString type, EventListener? callback, optional boolea n capture = false); 6 void addEventListener(DOMString type, EventListener? callback, optional boolea n capture = false);
7 void removeEventListener(DOMString type, EventListener? callback, optional boo lean capture = false); 7 void removeEventListener(DOMString type, EventListener? callback, optional boo lean capture = false);
8 boolean dispatchEvent(Event event); 8 boolean dispatchEvent(Event event);
9 }; 9 };
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 interface WindowBase64 { 61 interface WindowBase64 {
62 DOMString btoa(DOMString btoa); 62 DOMString btoa(DOMString btoa);
63 DOMString atob(DOMString atob); 63 DOMString atob(DOMString atob);
64 }; 64 };
65 65
66 [Exposed=Worker] 66 [Exposed=Worker]
67 interface WorkerNavigator {}; 67 interface WorkerNavigator {};
68 WorkerNavigator implements NavigatorID; 68 WorkerNavigator implements NavigatorID;
69 WorkerNavigator implements NavigatorLanguage; 69 WorkerNavigator implements NavigatorLanguage;
70 WorkerNavigator implements NavigatorOnLine; 70 WorkerNavigator implements NavigatorOnLine;
71 WorkerNavigator implements NavigatorWebDriver;
71 72
72 [NoInterfaceObject, Exposed=(Window,Worker)] 73 [NoInterfaceObject, Exposed=(Window,Worker)]
73 interface NavigatorID { 74 interface NavigatorID {
74 readonly attribute DOMString appCodeName; // constant "Mozilla" 75 readonly attribute DOMString appCodeName; // constant "Mozilla"
75 readonly attribute DOMString appName; 76 readonly attribute DOMString appName;
76 readonly attribute DOMString appVersion; 77 readonly attribute DOMString appVersion;
77 readonly attribute DOMString platform; 78 readonly attribute DOMString platform;
78 readonly attribute DOMString product; // constant "Gecko" 79 readonly attribute DOMString product; // constant "Gecko"
79 readonly attribute DOMString userAgent; 80 readonly attribute DOMString userAgent;
80 }; 81 };
81 82
82 [NoInterfaceObject, Exposed=(Window,Worker)] 83 [NoInterfaceObject, Exposed=(Window,Worker)]
83 interface NavigatorLanguage { 84 interface NavigatorLanguage {
84 readonly attribute DOMString? language; 85 readonly attribute DOMString? language;
85 readonly attribute DOMString[] languages; 86 readonly attribute DOMString[] languages;
86 }; 87 };
87 88
88 [NoInterfaceObject, Exposed=(Window,Worker)] 89 [NoInterfaceObject, Exposed=(Window,Worker)]
89 interface NavigatorOnLine { 90 interface NavigatorOnLine {
90 readonly attribute boolean onLine; 91 readonly attribute boolean onLine;
91 }; 92 };
92 93
94 [NoInterfaceObject, Exposed=(Window,Worker)]
95 interface NavigatorWebDriver {
96 readonly attribute boolean webdriver;
97 };
98
93 [Exposed=Worker] 99 [Exposed=Worker]
94 interface WorkerLocation { 100 interface WorkerLocation {
95 stringifier readonly attribute USVString href; 101 stringifier readonly attribute USVString href;
96 readonly attribute USVString origin; 102 readonly attribute USVString origin;
97 readonly attribute USVString protocol; 103 readonly attribute USVString protocol;
98 readonly attribute USVString host; 104 readonly attribute USVString host;
99 readonly attribute USVString hostname; 105 readonly attribute USVString hostname;
100 readonly attribute USVString port; 106 readonly attribute USVString port;
101 readonly attribute USVString pathname; 107 readonly attribute USVString pathname;
102 readonly attribute USVString search; 108 readonly attribute USVString search;
103 readonly attribute USVString hash; 109 readonly attribute USVString hash;
104 }; 110 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698