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