OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 WTF_MAKE_NONCOPYABLE(VisibleSelectionChangeObserver); | 54 WTF_MAKE_NONCOPYABLE(VisibleSelectionChangeObserver); |
55 public: | 55 public: |
56 VisibleSelectionChangeObserver(); | 56 VisibleSelectionChangeObserver(); |
57 virtual ~VisibleSelectionChangeObserver(); | 57 virtual ~VisibleSelectionChangeObserver(); |
58 virtual void didChangeVisibleSelection() = 0; | 58 virtual void didChangeVisibleSelection() = 0; |
59 DEFINE_INLINE_VIRTUAL_TRACE() { } | 59 DEFINE_INLINE_VIRTUAL_TRACE() { } |
60 }; | 60 }; |
61 | 61 |
62 template <typename Strategy> | 62 template <typename Strategy> |
63 class CORE_TEMPLATE_CLASS_EXPORT VisibleSelectionTemplate { | 63 class CORE_TEMPLATE_CLASS_EXPORT VisibleSelectionTemplate { |
64 DISALLOW_ALLOCATION(); | 64 DISALLOW_NEW(); |
65 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelectionTemplate); | 65 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelectionTemplate); |
66 public: | 66 public: |
67 VisibleSelectionTemplate(); | 67 VisibleSelectionTemplate(); |
68 VisibleSelectionTemplate(const PositionTemplate<Strategy>&, TextAffinity, bo
ol isDirectional = false); | 68 VisibleSelectionTemplate(const PositionTemplate<Strategy>&, TextAffinity, bo
ol isDirectional = false); |
69 VisibleSelectionTemplate(const PositionTemplate<Strategy>& base, const Posit
ionTemplate<Strategy>& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirec
tional = false); | 69 VisibleSelectionTemplate(const PositionTemplate<Strategy>& base, const Posit
ionTemplate<Strategy>& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirec
tional = false); |
70 explicit VisibleSelectionTemplate(const EphemeralRangeTemplate<Strategy>&, T
extAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); | 70 explicit VisibleSelectionTemplate(const EphemeralRangeTemplate<Strategy>&, T
extAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); |
71 | 71 |
72 explicit VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&,
bool isDirectional = false); | 72 explicit VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&,
bool isDirectional = false); |
73 VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, const Vis
iblePositionTemplate<Strategy>&, bool isDirectional = false); | 73 VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, const Vis
iblePositionTemplate<Strategy>&, bool isDirectional = false); |
74 | 74 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 #ifndef NDEBUG | 222 #ifndef NDEBUG |
223 // Outside the WebCore namespace for ease of invocation from gdb. | 223 // Outside the WebCore namespace for ease of invocation from gdb. |
224 void showTree(const blink::VisibleSelection&); | 224 void showTree(const blink::VisibleSelection&); |
225 void showTree(const blink::VisibleSelection*); | 225 void showTree(const blink::VisibleSelection*); |
226 void showTree(const blink::VisibleSelectionInComposedTree&); | 226 void showTree(const blink::VisibleSelectionInComposedTree&); |
227 void showTree(const blink::VisibleSelectionInComposedTree*); | 227 void showTree(const blink::VisibleSelectionInComposedTree*); |
228 #endif | 228 #endif |
229 | 229 |
230 #endif // VisibleSelection_h | 230 #endif // VisibleSelection_h |
OLD | NEW |