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

Side by Side Diff: third_party/WebKit/Source/core/editing/DOMSelection.h

Issue 2521043003: Replace LayoutTests/paint/invalidation/text-selection-focus.html with a SimTest. (Closed)
Patch Set: copyrights. Created 4 years 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) 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // These methods return the valid equivalents of internal editing positions. 61 // These methods return the valid equivalents of internal editing positions.
62 Node* baseNode() const; 62 Node* baseNode() const;
63 int baseOffset() const; 63 int baseOffset() const;
64 Node* extentNode() const; 64 Node* extentNode() const;
65 int extentOffset() const; 65 int extentOffset() const;
66 String type() const; 66 String type() const;
67 void setBaseAndExtent(Node* baseNode, 67 void setBaseAndExtent(Node* baseNode,
68 int baseOffset, 68 int baseOffset,
69 Node* extentNode, 69 Node* extentNode,
70 int extentOffset, 70 int extentOffset,
71 ExceptionState&); 71 ExceptionState& = ASSERT_NO_EXCEPTION);
72 void modify(const String& alter, 72 void modify(const String& alter,
73 const String& direction, 73 const String& direction,
74 const String& granularity); 74 const String& granularity);
75 75
76 // Mozilla Selection Object API 76 // Mozilla Selection Object API
77 // In Firefox, anchor/focus are the equal to the start/end of the selection, 77 // In Firefox, anchor/focus are the equal to the start/end of the selection,
78 // but reflect the direction in which the selection was made by the user. That 78 // but reflect the direction in which the selection was made by the user. That
79 // does not mean that they are base/extent, since the base/extent don't 79 // does not mean that they are base/extent, since the base/extent don't
80 // reflect expansion. 80 // reflect expansion.
81 // These methods return the valid equivalents of internal editing positions. 81 // These methods return the valid equivalents of internal editing positions.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool isValidForPosition(Node*) const; 117 bool isValidForPosition(Node*) const;
118 118
119 void addConsoleError(const String& message); 119 void addConsoleError(const String& message);
120 120
121 Member<const TreeScope> m_treeScope; 121 Member<const TreeScope> m_treeScope;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // DOMSelection_h 126 #endif // DOMSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698