| OLD | NEW |
| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 FloatRect bounds(bool clipToVisibleContent = true) const; | 203 FloatRect bounds(bool clipToVisibleContent = true) const; |
| 204 | 204 |
| 205 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); | 205 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); |
| 206 void setSelectionFromNone(); | 206 void setSelectionFromNone(); |
| 207 | 207 |
| 208 void setShouldShowBlockCursor(bool); | 208 void setShouldShowBlockCursor(bool); |
| 209 | 209 |
| 210 // VisibleSelection::ChangeObserver interface. | 210 // VisibleSelection::ChangeObserver interface. |
| 211 virtual void didChangeVisibleSelection() override; | 211 virtual void didChangeVisibleSelection() override; |
| 212 | 212 |
| 213 virtual void trace(Visitor*) override; | |
| 214 | |
| 215 private: | 213 private: |
| 216 explicit FrameSelection(LocalFrame*); | 214 explicit FrameSelection(LocalFrame*); |
| 217 | 215 |
| 218 enum EPositionType { START, END, BASE, EXTENT }; | 216 enum EPositionType { START, END, BASE, EXTENT }; |
| 219 | 217 |
| 220 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved,
bool startRemoved, bool endRemoved); | 218 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved,
bool startRemoved, bool endRemoved); |
| 221 TextDirection directionOfEnclosingBlock(); | 219 TextDirection directionOfEnclosingBlock(); |
| 222 TextDirection directionOfSelection(); | 220 TextDirection directionOfSelection(); |
| 223 | 221 |
| 224 VisiblePosition positionForPlatform(bool isGetStart) const; | 222 VisiblePosition positionForPlatform(bool isGetStart) const; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 } | 298 } |
| 301 } // namespace blink | 299 } // namespace blink |
| 302 | 300 |
| 303 #ifndef NDEBUG | 301 #ifndef NDEBUG |
| 304 // Outside the WebCore namespace for ease of invocation from gdb. | 302 // Outside the WebCore namespace for ease of invocation from gdb. |
| 305 void showTree(const blink::FrameSelection&); | 303 void showTree(const blink::FrameSelection&); |
| 306 void showTree(const blink::FrameSelection*); | 304 void showTree(const blink::FrameSelection*); |
| 307 #endif | 305 #endif |
| 308 | 306 |
| 309 #endif // FrameSelection_h | 307 #endif // FrameSelection_h |
| OLD | NEW |