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