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

Side by Side Diff: Source/core/page/DOMSelection.h

Issue 124193003: Remove DOMSelection::setPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/page/DOMSelection.cpp » ('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) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void clearTreeScope(); 54 void clearTreeScope();
55 55
56 // Safari Selection Object API 56 // Safari Selection Object API
57 // These methods return the valid equivalents of internal editing positions. 57 // These methods return the valid equivalents of internal editing positions.
58 Node* baseNode() const; 58 Node* baseNode() const;
59 Node* extentNode() const; 59 Node* extentNode() const;
60 int baseOffset() const; 60 int baseOffset() const;
61 int extentOffset() const; 61 int extentOffset() const;
62 String type() const; 62 String type() const;
63 void setBaseAndExtent(Node* baseNode, int baseOffset, Node* extentNode, int extentOffset, ExceptionState&); 63 void setBaseAndExtent(Node* baseNode, int baseOffset, Node* extentNode, int extentOffset, ExceptionState&);
64 void setPosition(Node*, int offset, ExceptionState&);
65 void modify(const String& alter, const String& direction, const String& gran ularity); 64 void modify(const String& alter, const String& direction, const String& gran ularity);
66 65
67 // Mozilla Selection Object API 66 // Mozilla Selection Object API
68 // In Firefox, anchor/focus are the equal to the start/end of the selection, 67 // In Firefox, anchor/focus are the equal to the start/end of the selection,
69 // but reflect the direction in which the selection was made by the user. Th at does 68 // but reflect the direction in which the selection was made by the user. Th at does
70 // not mean that they are base/extent, since the base/extent don't reflect 69 // not mean that they are base/extent, since the base/extent don't reflect
71 // expansion. 70 // expansion.
72 // These methods return the valid equivalents of internal editing positions. 71 // These methods return the valid equivalents of internal editing positions.
73 Node* anchorNode() const; 72 Node* anchorNode() const;
74 int anchorOffset() const; 73 int anchorOffset() const;
(...skipping 27 matching lines...) Expand all
102 101
103 Node* shadowAdjustedNode(const Position&) const; 102 Node* shadowAdjustedNode(const Position&) const;
104 int shadowAdjustedOffset(const Position&) const; 103 int shadowAdjustedOffset(const Position&) const;
105 104
106 bool isValidForPosition(Node*) const; 105 bool isValidForPosition(Node*) const;
107 }; 106 };
108 107
109 } // namespace WebCore 108 } // namespace WebCore
110 109
111 #endif // DOMSelection_h 110 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698