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

Side by Side Diff: third_party/WebKit/Source/core/editing/Selection.idl

Issue 2043503002: Add [CEReactions] IDL attributes for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yukishiino review Created 4 years, 6 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 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 [MeasureAs=SelectionCollapse, RaisesException] void collapse(Node? node, opt ional long offset = 0); 49 [MeasureAs=SelectionCollapse, RaisesException] void collapse(Node? node, opt ional long offset = 0);
50 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] vo id setPosition(Node? node, optional long offset = 0); 50 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] vo id setPosition(Node? node, optional long offset = 0);
51 [MeasureAs=SelectionCollapseToStart, RaisesException] void collapseToStart() ; 51 [MeasureAs=SelectionCollapseToStart, RaisesException] void collapseToStart() ;
52 [MeasureAs=SelectionCollapseToEnd, RaisesException] void collapseToEnd(); 52 [MeasureAs=SelectionCollapseToEnd, RaisesException] void collapseToEnd();
53 [MeasureAs=SelectionExtend, RaisesException] void extend(Node node, optional long offset = 0); 53 [MeasureAs=SelectionExtend, RaisesException] void extend(Node node, optional long offset = 0);
54 // TODO(foolip): The arguments should be anchorNode, anchorOffset, 54 // TODO(foolip): The arguments should be anchorNode, anchorOffset,
55 // focusNode and focusOffset, and none of them are nullable in the spec. 55 // focusNode and focusOffset, and none of them are nullable in the spec.
56 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent (Node? baseNode, long baseOffset, 56 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent (Node? baseNode, long baseOffset,
57 Node? extentNode, long extentOffset); 57 Node? extentNode, long extentOffset);
58 [MeasureAs=SelectionSelectAllChildren, RaisesException] void selectAllChildr en(Node node); 58 [MeasureAs=SelectionSelectAllChildren, RaisesException] void selectAllChildr en(Node node);
59 [MeasureAs=SelectionDeleteDromDocument, CustomElementCallbacks] void deleteF romDocument(); 59 [MeasureAs=SelectionDeleteDromDocument, CEReactions, CustomElementCallbacks] void deleteFromDocument();
60 [MeasureAs=SelectionContainsNode] boolean containsNode(Node node, optional b oolean allowPartialContainment = false); 60 [MeasureAs=SelectionContainsNode] boolean containsNode(Node node, optional b oolean allowPartialContainment = false);
61 [MeasureAs=SelectionDOMString] stringifier; 61 [MeasureAs=SelectionDOMString] stringifier;
62 62
63 // Non-standard APIs 63 // Non-standard APIs
64 64
65 // https://github.com/w3c/selection-api/issues/34 65 // https://github.com/w3c/selection-api/issues/34
66 [MeasureAs=SelectionBaseNode] readonly attribute Node? baseNode; 66 [MeasureAs=SelectionBaseNode] readonly attribute Node? baseNode;
67 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; 67 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset;
68 [MeasureAs=SelectionExtentNode] readonly attribute Node? extentNode; 68 [MeasureAs=SelectionExtentNode] readonly attribute Node? extentNode;
69 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; 69 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset;
70 70
71 // https://github.com/w3c/selection-api/issues/37 71 // https://github.com/w3c/selection-api/issues/37
72 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter, 72 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter,
73 [Default=Undefined] optional DOMStri ng direction, 73 [Default=Undefined] optional DOMStri ng direction,
74 [Default=Undefined] optional DOMStri ng granularity); 74 [Default=Undefined] optional DOMStri ng granularity);
75 }; 75 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.idl ('k') | third_party/WebKit/Source/core/html/HTMLAnchorElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698