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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
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/Caret.h" | 31 #include "core/editing/Caret.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/VisibleSelection.h" | 35 #include "core/editing/VisibleSelection.h" |
35 #include "core/layout/ScrollAlignment.h" | 36 #include "core/layout/ScrollAlignment.h" |
36 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
37 #include "platform/geometry/IntRect.h" | 38 #include "platform/geometry/IntRect.h" |
38 #include "platform/geometry/LayoutRect.h" | 39 #include "platform/geometry/LayoutRect.h" |
39 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
40 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
41 | 42 |
42 namespace blink { | 43 namespace blink { |
43 | 44 |
44 class CharacterData; | 45 class CharacterData; |
45 class LocalFrame; | 46 class LocalFrame; |
46 class GranularityStrategy; | 47 class GranularityStrategy; |
47 class GraphicsContext; | 48 class GraphicsContext; |
48 class HTMLFormElement; | 49 class HTMLFormElement; |
49 class Text; | 50 class Text; |
50 class VisiblePosition; | |
51 | 51 |
52 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; | 52 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; |
53 | 53 |
54 enum RevealExtentOption { | 54 enum RevealExtentOption { |
55 RevealExtent, | 55 RevealExtent, |
56 DoNotRevealExtent | 56 DoNotRevealExtent |
57 }; | 57 }; |
58 | 58 |
59 class CORE_EXPORT FrameSelection final : public NoBaseWillBeGarbageCollectedFina
lized<FrameSelection>, public VisibleSelection::ChangeObserver, private CaretBas
e { | 59 class CORE_EXPORT FrameSelection final : public NoBaseWillBeGarbageCollectedFina
lized<FrameSelection>, public VisibleSelection::ChangeObserver, private CaretBas
e { |
60 WTF_MAKE_NONCOPYABLE(FrameSelection); | 60 WTF_MAKE_NONCOPYABLE(FrameSelection); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 339 } |
340 } // namespace blink | 340 } // namespace blink |
341 | 341 |
342 #ifndef NDEBUG | 342 #ifndef NDEBUG |
343 // Outside the WebCore namespace for ease of invocation from gdb. | 343 // Outside the WebCore namespace for ease of invocation from gdb. |
344 void showTree(const blink::FrameSelection&); | 344 void showTree(const blink::FrameSelection&); |
345 void showTree(const blink::FrameSelection*); | 345 void showTree(const blink::FrameSelection*); |
346 #endif | 346 #endif |
347 | 347 |
348 #endif // FrameSelection_h | 348 #endif // FrameSelection_h |
OLD | NEW |