| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 HandleVisibility = HandleVisibility::NotVisible, | 138 HandleVisibility = HandleVisibility::NotVisible, |
| 139 SetSelectionOptions = CloseTyping | ClearTypingStyle, | 139 SetSelectionOptions = CloseTyping | ClearTypingStyle, |
| 140 CursorAlignOnScroll = CursorAlignOnScroll::IfNeeded, | 140 CursorAlignOnScroll = CursorAlignOnScroll::IfNeeded, |
| 141 TextGranularity = CharacterGranularity); | 141 TextGranularity = CharacterGranularity); |
| 142 bool setSelectedRange( | 142 bool setSelectedRange( |
| 143 const EphemeralRange&, | 143 const EphemeralRange&, |
| 144 TextAffinity, | 144 TextAffinity, |
| 145 SelectionDirectionalMode = SelectionDirectionalMode::NonDirectional, | 145 SelectionDirectionalMode = SelectionDirectionalMode::NonDirectional, |
| 146 FrameSelection::SetSelectionOptions = CloseTyping | ClearTypingStyle); | 146 FrameSelection::SetSelectionOptions = CloseTyping | ClearTypingStyle); |
| 147 void selectAll(); | 147 void selectAll(); |
| 148 bool canSelectAll(); |
| 148 void clear(); | 149 void clear(); |
| 149 | 150 |
| 150 // TODO(tkent): These two functions were added to fix crbug.com/695211 without | 151 // TODO(tkent): These two functions were added to fix crbug.com/695211 without |
| 151 // changing focus behavior. Once we fix crbug.com/690272, we can remove these | 152 // changing focus behavior. Once we fix crbug.com/690272, we can remove these |
| 152 // functions. | 153 // functions. |
| 153 // setSelectionDeprecated() returns true if didSetSelectionDeprecated() should | 154 // setSelectionDeprecated() returns true if didSetSelectionDeprecated() should |
| 154 // be called. | 155 // be called. |
| 155 bool setSelectionDeprecated(const SelectionInDOMTree&, | 156 bool setSelectionDeprecated(const SelectionInDOMTree&, |
| 156 SetSelectionOptions = CloseTyping | | 157 SetSelectionOptions = CloseTyping | |
| 157 ClearTypingStyle, | 158 ClearTypingStyle, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 306 |
| 306 void setUseSecureKeyboardEntry(bool); | 307 void setUseSecureKeyboardEntry(bool); |
| 307 | 308 |
| 308 void updateSelectionIfNeeded(const Position& base, | 309 void updateSelectionIfNeeded(const Position& base, |
| 309 const Position& extent, | 310 const Position& extent, |
| 310 const Position& start, | 311 const Position& start, |
| 311 const Position& end); | 312 const Position& end); |
| 312 | 313 |
| 313 GranularityStrategy* granularityStrategy(); | 314 GranularityStrategy* granularityStrategy(); |
| 314 | 315 |
| 316 Node* selectAllRoot(); |
| 317 |
| 315 // Implementation of |SynchronousMutationObserver| member functions. | 318 // Implementation of |SynchronousMutationObserver| member functions. |
| 316 void contextDestroyed(Document*) final; | 319 void contextDestroyed(Document*) final; |
| 317 void nodeChildrenWillBeRemoved(ContainerNode&) final; | 320 void nodeChildrenWillBeRemoved(ContainerNode&) final; |
| 318 void nodeWillBeRemoved(Node&) final; | 321 void nodeWillBeRemoved(Node&) final; |
| 319 | 322 |
| 320 Member<LocalFrame> m_frame; | 323 Member<LocalFrame> m_frame; |
| 321 const Member<PendingSelection> m_pendingSelection; | 324 const Member<PendingSelection> m_pendingSelection; |
| 322 const Member<SelectionEditor> m_selectionEditor; | 325 const Member<SelectionEditor> m_selectionEditor; |
| 323 | 326 |
| 324 TextGranularity m_granularity; | 327 TextGranularity m_granularity; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 336 | 339 |
| 337 } // namespace blink | 340 } // namespace blink |
| 338 | 341 |
| 339 #ifndef NDEBUG | 342 #ifndef NDEBUG |
| 340 // Outside the WebCore namespace for ease of invocation from gdb. | 343 // Outside the WebCore namespace for ease of invocation from gdb. |
| 341 void showTree(const blink::FrameSelection&); | 344 void showTree(const blink::FrameSelection&); |
| 342 void showTree(const blink::FrameSelection*); | 345 void showTree(const blink::FrameSelection*); |
| 343 #endif | 346 #endif |
| 344 | 347 |
| 345 #endif // FrameSelection_h | 348 #endif // FrameSelection_h |
| OLD | NEW |