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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl

Issue 1815643002: Introduce DocumentOrShadowRoot Mixin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@debug
Patch Set: fix typo Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl
diff --git a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl
new file mode 100644
index 0000000000000000000000000000000000000000..40d4b77e6ae2f1db9ba4281ff3ff11e396ea7e6b
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://dom.spec.whatwg.org/#mixin-documentorshadowroot
+// http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin
+[
+ LegacyTreatAsPartialInterface,
+ NoInterfaceObject,
+] interface DocumentOrShadowRoot {
+ // Selection API
+ // http://w3c.github.io/selection-api/#extensions-to-document-interface
+ Selection? getSelection();
+ // CSSOM View Module
+ // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-document-interface
+ // TODO(philipj): The x and y arguments should be of type double.
+ Element? elementFromPoint(long x, long y);
+ sequence<Element> elementsFromPoint(long x, long y);
+ readonly attribute Element? activeElement;
+ [SameObject] readonly attribute StyleSheetList styleSheets;
+};

Powered by Google App Engine
This is Rietveld 408576698