| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 // Returns true if a word is selected. | 199 // Returns true if a word is selected. |
| 200 bool selectWordAroundPosition(const VisiblePosition&); | 200 bool selectWordAroundPosition(const VisiblePosition&); |
| 201 | 201 |
| 202 #ifndef NDEBUG | 202 #ifndef NDEBUG |
| 203 void formatForDebugger(char* buffer, unsigned length) const; | 203 void formatForDebugger(char* buffer, unsigned length) const; |
| 204 void showTreeForThis() const; | 204 void showTreeForThis() const; |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd
points }; | 207 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd
points }; |
| 208 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | |
| 209 void setNonDirectionalSelectionIfNeeded(const VisibleSelectionInFlatTree&, T
extGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | 208 void setNonDirectionalSelectionIfNeeded(const VisibleSelectionInFlatTree&, T
extGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); |
| 210 void setFocusedNodeIfNeeded(); | 209 void setFocusedNodeIfNeeded(); |
| 211 void notifyLayoutObjectOfSelectionChange(EUserTriggered); | 210 void notifyLayoutObjectOfSelectionChange(EUserTriggered); |
| 212 | 211 |
| 213 EditingStyle* typingStyle() const; | 212 EditingStyle* typingStyle() const; |
| 214 void setTypingStyle(EditingStyle*); | 213 void setTypingStyle(EditingStyle*); |
| 215 void clearTypingStyle(); | 214 void clearTypingStyle(); |
| 216 | 215 |
| 217 String selectedHTMLForClipboard() const; | 216 String selectedHTMLForClipboard() const; |
| 218 String selectedText(TextIteratorBehavior = TextIteratorDefaultBehavior) cons
t; | 217 String selectedText(TextIteratorBehavior = TextIteratorDefaultBehavior) cons
t; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 } | 316 } |
| 318 } // namespace blink | 317 } // namespace blink |
| 319 | 318 |
| 320 #ifndef NDEBUG | 319 #ifndef NDEBUG |
| 321 // Outside the WebCore namespace for ease of invocation from gdb. | 320 // Outside the WebCore namespace for ease of invocation from gdb. |
| 322 void showTree(const blink::FrameSelection&); | 321 void showTree(const blink::FrameSelection&); |
| 323 void showTree(const blink::FrameSelection*); | 322 void showTree(const blink::FrameSelection*); |
| 324 #endif | 323 #endif |
| 325 | 324 |
| 326 #endif // FrameSelection_h | 325 #endif // FrameSelection_h |
| OLD | NEW |