| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 TextAffinity, | 148 TextAffinity, |
| 149 SelectionDirectionalMode = SelectionDirectionalMode::NonDirectional, | 149 SelectionDirectionalMode = SelectionDirectionalMode::NonDirectional, |
| 150 FrameSelection::SetSelectionOptions = CloseTyping | ClearTypingStyle); | 150 FrameSelection::SetSelectionOptions = CloseTyping | ClearTypingStyle); |
| 151 void selectAll(); | 151 void selectAll(); |
| 152 void clear(); | 152 void clear(); |
| 153 | 153 |
| 154 // Call this after doing user-triggered selections to make it easy to delete | 154 // Call this after doing user-triggered selections to make it easy to delete |
| 155 // the frame you entirely selected. | 155 // the frame you entirely selected. |
| 156 void selectFrameElementInParentIfFullySelected(); | 156 void selectFrameElementInParentIfFullySelected(); |
| 157 | 157 |
| 158 bool contains(const HitTestResult&); |
| 158 bool contains(const LayoutPoint&); | 159 bool contains(const LayoutPoint&); |
| 159 | 160 |
| 160 SelectionType getSelectionType() const { | 161 SelectionType getSelectionType() const { |
| 161 return selection().getSelectionType(); | 162 return selection().getSelectionType(); |
| 162 } | 163 } |
| 163 | 164 |
| 164 TextAffinity affinity() const { return selection().affinity(); } | 165 TextAffinity affinity() const { return selection().affinity(); } |
| 165 | 166 |
| 166 bool modify(EAlteration, | 167 bool modify(EAlteration, |
| 167 SelectionDirection, | 168 SelectionDirection, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 381 } |
| 381 } // namespace blink | 382 } // namespace blink |
| 382 | 383 |
| 383 #ifndef NDEBUG | 384 #ifndef NDEBUG |
| 384 // Outside the WebCore namespace for ease of invocation from gdb. | 385 // Outside the WebCore namespace for ease of invocation from gdb. |
| 385 void showTree(const blink::FrameSelection&); | 386 void showTree(const blink::FrameSelection&); |
| 386 void showTree(const blink::FrameSelection*); | 387 void showTree(const blink::FrameSelection*); |
| 387 #endif | 388 #endif |
| 388 | 389 |
| 389 #endif // FrameSelection_h | 390 #endif // FrameSelection_h |
| OLD | NEW |