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

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

Issue 2776983003: Expand FrameSelection/SelectionEditor::firstRange() (Closed)
Patch Set: Created 3 years, 9 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool shouldPaintCaret(const LayoutBlock&) const; 173 bool shouldPaintCaret(const LayoutBlock&) const;
174 174
175 // Bounds of (possibly transformed) caret in absolute coords 175 // Bounds of (possibly transformed) caret in absolute coords
176 IntRect absoluteCaretBounds(); 176 IntRect absoluteCaretBounds();
177 177
178 void didChangeFocus(); 178 void didChangeFocus();
179 179
180 const SelectionInDOMTree& selectionInDOMTree() const; 180 const SelectionInDOMTree& selectionInDOMTree() const;
181 bool isDirectional() const { return selectionInDOMTree().isDirectional(); } 181 bool isDirectional() const { return selectionInDOMTree().isDirectional(); }
182 182
183 // If this FrameSelection has a logical range which is still valid, this
184 // function return its clone. Otherwise, the return value from underlying
185 // VisibleSelection's firstRange() is returned.
186 Range* firstRange() const;
187
188 void documentAttached(Document*); 183 void documentAttached(Document*);
189 184
190 void didLayout(); 185 void didLayout();
191 bool isAppearanceDirty() const; 186 bool isAppearanceDirty() const;
192 void commitAppearanceIfNeeded(LayoutView&); 187 void commitAppearanceIfNeeded(LayoutView&);
193 void setCaretVisible(bool caretIsVisible); 188 void setCaretVisible(bool caretIsVisible);
194 void scheduleVisualUpdate() const; 189 void scheduleVisualUpdate() const;
195 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const; 190 void scheduleVisualUpdateForPaintInvalidationIfNeeded() const;
196 191
197 // Paint invalidation methods delegating to FrameCaret. 192 // Paint invalidation methods delegating to FrameCaret.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 309
315 } // namespace blink 310 } // namespace blink
316 311
317 #ifndef NDEBUG 312 #ifndef NDEBUG
318 // Outside the WebCore namespace for ease of invocation from gdb. 313 // Outside the WebCore namespace for ease of invocation from gdb.
319 void showTree(const blink::FrameSelection&); 314 void showTree(const blink::FrameSelection&);
320 void showTree(const blink::FrameSelection*); 315 void showTree(const blink::FrameSelection*);
321 #endif 316 #endif
322 317
323 #endif // FrameSelection_h 318 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/DOMSelection.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698