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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 258 |
259 bool dispatchSelectStart(); | 259 bool dispatchSelectStart(); |
260 | 260 |
261 void updateSelectionIfNeeded(const Position& base, const Position& extent, c
onst Position& start, const Position& end); | 261 void updateSelectionIfNeeded(const Position& base, const Position& extent, c
onst Position& start, const Position& end); |
262 | 262 |
263 void startObservingVisibleSelectionChange(); | 263 void startObservingVisibleSelectionChange(); |
264 void stopObservingVisibleSelectionChangeIfNecessary(); | 264 void stopObservingVisibleSelectionChangeIfNecessary(); |
265 | 265 |
266 VisibleSelection validateSelection(const VisibleSelection&); | 266 VisibleSelection validateSelection(const VisibleSelection&); |
267 | 267 |
268 LocalFrame* m_frame; | 268 RawPtrWillBeMember<LocalFrame> m_frame; |
269 | 269 |
270 LayoutUnit m_xPosForVerticalArrowNavigation; | 270 LayoutUnit m_xPosForVerticalArrowNavigation; |
271 | 271 |
272 VisibleSelection m_selection; | 272 VisibleSelection m_selection; |
273 bool m_observingVisibleSelection; | 273 bool m_observingVisibleSelection; |
274 VisiblePosition m_originalBase; // Used to store base before the adjustment
at bidi boundary | 274 VisiblePosition m_originalBase; // Used to store base before the adjustment
at bidi boundary |
275 TextGranularity m_granularity; | 275 TextGranularity m_granularity; |
276 | 276 |
277 // The range specified by the user, which may not be visually canonicalized
(hence "logical"). | 277 // The range specified by the user, which may not be visually canonicalized
(hence "logical"). |
278 // This will be invalidated if the underlying VisibleSelection changes. If t
hat happens, this variable will | 278 // This will be invalidated if the underlying VisibleSelection changes. If t
hat happens, this variable will |
(...skipping 30 matching lines...) Expand all Loading... |
309 } | 309 } |
310 } // namespace blink | 310 } // namespace blink |
311 | 311 |
312 #ifndef NDEBUG | 312 #ifndef NDEBUG |
313 // Outside the WebCore namespace for ease of invocation from gdb. | 313 // Outside the WebCore namespace for ease of invocation from gdb. |
314 void showTree(const blink::FrameSelection&); | 314 void showTree(const blink::FrameSelection&); |
315 void showTree(const blink::FrameSelection*); | 315 void showTree(const blink::FrameSelection*); |
316 #endif | 316 #endif |
317 | 317 |
318 #endif // FrameSelection_h | 318 #endif // FrameSelection_h |
OLD | NEW |