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

Side by Side Diff: sky/engine/core/editing/Selection.idl

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 readonly attribute long rangeCount; 58 readonly attribute long rangeCount;
59 [RaisesException] Range getRangeAt([Default=Undefined] optional long index); 59 [RaisesException] Range getRangeAt([Default=Undefined] optional long index);
60 void addRange([Default=Undefined] optional Range range); 60 void addRange([Default=Undefined] optional Range range);
61 void removeAllRanges(); 61 void removeAllRanges();
62 62
63 [NotEnumerable] stringifier; 63 [NotEnumerable] stringifier;
64 64
65 // Firefox extensions 65 // Firefox extensions
66 // https://developer.mozilla.org/En/DOM/Selection 66 // https://developer.mozilla.org/En/DOM/Selection
67 // 67 //
68 [MeasureAs=SelectionContainsNode] boolean containsNode([Default = Undefined] optional Node node, [Default = Undefined] optional boolean allowPartial); 68 boolean containsNode([Default = Undefined] optional Node node, [Default = Un defined] optional boolean allowPartial);
69 69
70 // WebKit extensions 70 // WebKit extensions
71 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode; 71 readonly attribute Node baseNode;
72 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; 72 readonly attribute long baseOffset;
73 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode; 73 readonly attribute Node extentNode;
74 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; 74 readonly attribute long extentOffset;
75 75
76 // WebKit's "type" accessor returns "None", "Range" and "Caret" 76 // WebKit's "type" accessor returns "None", "Range" and "Caret"
77 // IE's type accessor returns "none", "text" and "control" 77 // IE's type accessor returns "none", "text" and "control"
78 [MeasureAs=SelectionType] readonly attribute DOMString type; 78 readonly attribute DOMString type;
79 79
80 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter, 80 void modify([Default=Undefined] optional DOMString alter,
81 [Default=Undefined] optional DOMStri ng direction, 81 [Default=Undefined] optional DOMStri ng direction,
82 [Default=Undefined] optional DOMStri ng granularity); 82 [Default=Undefined] optional DOMStri ng granularity);
83 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent ([Default=Undefined] optional Node baseNode, 83 [RaisesException] void setBaseAndExtent([Default=Undefined] optional Node ba seNode,
84 [Default=Undefined] optional long baseOffset, 84 [Default=Undefined] optional long baseOffset,
85 [Default=Undefined] optional Node extentNode, 85 [Default=Undefined] optional Node extentNode,
86 [Default=Undefined] optional long extentOffset); 86 [Default=Undefined] optional long extentOffset);
87 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty peChecking=Interface] void setPosition(Node node, 87 [ImplementedAs=collapse, RaisesException, TypeChecking=Interface] void setPo sition(Node node,
88 optional long offset = 0); 88 optional long offset = 0);
89 89
90 // IE extensions 90 // IE extensions
91 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 91 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
92 [MeasureAs=SelectionEmpty] void empty(); 92 void empty();
93 }; 93 };
OLDNEW
« no previous file with comments | « sky/engine/core/editing/ReplaceSelectionCommand.cpp ('k') | sky/engine/core/editing/SplitElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698