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

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

Issue 683593002: Remove GarbageCollected support from the bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/dom/URL.idl ('k') | sky/engine/core/events/Event.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 // This is based on the W3C standard HTML Editing APIs 30 // This is based on the W3C standard HTML Editing APIs
31 // https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#selection 31 // https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#selection
32 // 32 //
33 // FIXME: Fix discrepancies from the standard, especially 33 // FIXME: Fix discrepancies from the standard, especially
34 // * unsigned types where should be unsigned 34 // * unsigned types where should be unsigned
35 // * Nullability 35 // * Nullability
36 // * RemoveRange(Range range) method 36 // * RemoveRange(Range range) method
37 // http://crbug.com/391673 37 // http://crbug.com/391673
38 [ 38 [
39 ImplementedAs=DOMSelection, 39 ImplementedAs=DOMSelection,
40 WillBeGarbageCollected,
41 ] interface Selection { 40 ] interface Selection {
42 readonly attribute Node anchorNode; 41 readonly attribute Node anchorNode;
43 readonly attribute long anchorOffset; 42 readonly attribute long anchorOffset;
44 readonly attribute Node focusNode; 43 readonly attribute Node focusNode;
45 readonly attribute long focusOffset; 44 readonly attribute long focusOffset;
46 45
47 readonly attribute boolean isCollapsed; 46 readonly attribute boolean isCollapsed;
48 [RaisesException, TypeChecking=Interface] void collapse(Node node, optional long offset = 0); 47 [RaisesException, TypeChecking=Interface] void collapse(Node node, optional long offset = 0);
49 [RaisesException] void collapseToStart(); 48 [RaisesException] void collapseToStart();
50 [RaisesException] void collapseToEnd(); 49 [RaisesException] void collapseToEnd();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 [Default=Undefined] optional long baseOffset, 84 [Default=Undefined] optional long baseOffset,
86 [Default=Undefined] optional Node extentNode, 85 [Default=Undefined] optional Node extentNode,
87 [Default=Undefined] optional long extentOffset); 86 [Default=Undefined] optional long extentOffset);
88 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty peChecking=Interface] void setPosition(Node node, 87 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty peChecking=Interface] void setPosition(Node node,
89 optional long offset = 0); 88 optional long offset = 0);
90 89
91 // IE extensions 90 // IE extensions
92 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 91 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
93 [MeasureAs=SelectionEmpty] void empty(); 92 [MeasureAs=SelectionEmpty] void empty();
94 }; 93 };
OLDNEW
« no previous file with comments | « sky/engine/core/dom/URL.idl ('k') | sky/engine/core/events/Event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698