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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 HTMLFormElement* currentForm() const; | 222 HTMLFormElement* currentForm() const; |
223 | 223 |
224 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); | 224 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); |
225 void setSelectionFromNone(); | 225 void setSelectionFromNone(); |
226 | 226 |
227 bool shouldShowBlockCursor() const { return m_shouldShowBlockCursor; } | 227 bool shouldShowBlockCursor() const { return m_shouldShowBlockCursor; } |
228 void setShouldShowBlockCursor(bool); | 228 void setShouldShowBlockCursor(bool); |
229 | 229 |
230 // VisibleSelection::ChangeObserver interface. | 230 // VisibleSelection::ChangeObserver interface. |
231 virtual void didChangeVisibleSelection() override; | 231 void didChangeVisibleSelection() override; |
232 | 232 |
233 DECLARE_VIRTUAL_TRACE(); | 233 DECLARE_VIRTUAL_TRACE(); |
234 | 234 |
235 private: | 235 private: |
236 explicit FrameSelection(LocalFrame*); | 236 explicit FrameSelection(LocalFrame*); |
237 | 237 |
238 enum EPositionType { START, END, BASE, EXTENT }; | 238 enum EPositionType { START, END, BASE, EXTENT }; |
239 | 239 |
240 template <typename Strategy> | 240 template <typename Strategy> |
241 bool containsAlgorithm(const LayoutPoint&); | 241 bool containsAlgorithm(const LayoutPoint&); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 } | 334 } |
335 } // namespace blink | 335 } // namespace blink |
336 | 336 |
337 #ifndef NDEBUG | 337 #ifndef NDEBUG |
338 // Outside the WebCore namespace for ease of invocation from gdb. | 338 // Outside the WebCore namespace for ease of invocation from gdb. |
339 void showTree(const blink::FrameSelection&); | 339 void showTree(const blink::FrameSelection&); |
340 void showTree(const blink::FrameSelection*); | 340 void showTree(const blink::FrameSelection*); |
341 #endif | 341 #endif |
342 | 342 |
343 #endif // FrameSelection_h | 343 #endif // FrameSelection_h |
OLD | NEW |