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

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

Issue 570763003: Remove unneeded bool from RenderView::selectionBounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined (again and again) Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void setFocusedNodeIfNeeded(); 198 void setFocusedNodeIfNeeded();
199 void notifyRendererOfSelectionChange(EUserTriggered); 199 void notifyRendererOfSelectionChange(EUserTriggered);
200 200
201 EditingStyle* typingStyle() const; 201 EditingStyle* typingStyle() const;
202 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>); 202 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>);
203 void clearTypingStyle(); 203 void clearTypingStyle();
204 204
205 String selectedText() const; 205 String selectedText() const;
206 String selectedTextForClipboard() const; 206 String selectedTextForClipboard() const;
207 207
208 FloatRect bounds(bool clipToVisibleContent = true) const; 208 FloatRect bounds() const;
209 209
210 HTMLFormElement* currentForm() const; 210 HTMLFormElement* currentForm() const;
211 211
212 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent); 212 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent);
213 void setSelectionFromNone(); 213 void setSelectionFromNone();
214 214
215 void setShouldShowBlockCursor(bool); 215 void setShouldShowBlockCursor(bool);
216 216
217 // VisibleSelection::ChangeObserver interface. 217 // VisibleSelection::ChangeObserver interface.
218 virtual void didChangeVisibleSelection() OVERRIDE; 218 virtual void didChangeVisibleSelection() OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 } // namespace blink 311 } // namespace blink
312 312
313 #ifndef NDEBUG 313 #ifndef NDEBUG
314 // Outside the WebCore namespace for ease of invocation from gdb. 314 // Outside the WebCore namespace for ease of invocation from gdb.
315 void showTree(const blink::FrameSelection&); 315 void showTree(const blink::FrameSelection&);
316 void showTree(const blink::FrameSelection*); 316 void showTree(const blink::FrameSelection*);
317 #endif 317 #endif
318 318
319 #endif // FrameSelection_h 319 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698