| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef FrameSelection_h | 26 #ifndef FrameSelection_h |
| 27 #define FrameSelection_h | 27 #define FrameSelection_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/dom/Range.h" | 30 #include "core/dom/Range.h" |
| 31 #include "core/editing/CaretBase.h" | 31 #include "core/editing/CaretBase.h" |
| 32 #include "core/editing/EditingStyle.h" | 32 #include "core/editing/EditingStyle.h" |
| 33 #include "core/editing/EphemeralRange.h" | 33 #include "core/editing/EphemeralRange.h" |
| 34 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
| 35 #include "core/editing/VisibleSelection.h" | 35 #include "core/editing/VisibleSelection.h" |
| 36 #include "core/editing/iterators/TextIteratorFlags.h" | |
| 37 #include "core/layout/ScrollAlignment.h" | 36 #include "core/layout/ScrollAlignment.h" |
| 38 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
| 39 #include "platform/geometry/IntRect.h" | 38 #include "platform/geometry/IntRect.h" |
| 40 #include "platform/geometry/LayoutRect.h" | 39 #include "platform/geometry/LayoutRect.h" |
| 41 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 42 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 class CharacterData; | 45 class CharacterData; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | 216 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); |
| 218 void setNonDirectionalSelectionIfNeeded(const VisibleSelectionInComposedTree
&, TextGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | 217 void setNonDirectionalSelectionIfNeeded(const VisibleSelectionInComposedTree
&, TextGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); |
| 219 void setFocusedNodeIfNeeded(); | 218 void setFocusedNodeIfNeeded(); |
| 220 void notifyLayoutObjectOfSelectionChange(EUserTriggered); | 219 void notifyLayoutObjectOfSelectionChange(EUserTriggered); |
| 221 | 220 |
| 222 EditingStyle* typingStyle() const; | 221 EditingStyle* typingStyle() const; |
| 223 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>); | 222 void setTypingStyle(PassRefPtrWillBeRawPtr<EditingStyle>); |
| 224 void clearTypingStyle(); | 223 void clearTypingStyle(); |
| 225 | 224 |
| 226 String selectedHTMLForClipboard() const; | 225 String selectedHTMLForClipboard() const; |
| 227 String selectedText(TextIteratorBehavior = TextIteratorDefaultBehavior) cons
t; | 226 String selectedText() const; |
| 228 String selectedTextForClipboard() const; | 227 String selectedTextForClipboard() const; |
| 229 | 228 |
| 230 // The bounds are clipped to the viewport as this is what callers expect. | 229 // The bounds are clipped to the viewport as this is what callers expect. |
| 231 LayoutRect bounds() const; | 230 LayoutRect bounds() const; |
| 232 LayoutRect unclippedBounds() const; | 231 LayoutRect unclippedBounds() const; |
| 233 | 232 |
| 234 HTMLFormElement* currentForm() const; | 233 HTMLFormElement* currentForm() const; |
| 235 | 234 |
| 236 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); | 235 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); |
| 237 void setSelectionFromNone(); | 236 void setSelectionFromNone(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 } | 328 } |
| 330 } // namespace blink | 329 } // namespace blink |
| 331 | 330 |
| 332 #ifndef NDEBUG | 331 #ifndef NDEBUG |
| 333 // Outside the WebCore namespace for ease of invocation from gdb. | 332 // Outside the WebCore namespace for ease of invocation from gdb. |
| 334 void showTree(const blink::FrameSelection&); | 333 void showTree(const blink::FrameSelection&); |
| 335 void showTree(const blink::FrameSelection*); | 334 void showTree(const blink::FrameSelection*); |
| 336 #endif | 335 #endif |
| 337 | 336 |
| 338 #endif // FrameSelection_h | 337 #endif // FrameSelection_h |
| OLD | NEW |