| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 void SetFocusedNodeIfNeeded(); | 224 void SetFocusedNodeIfNeeded(); |
| 225 void NotifyTextControlOfSelectionChange(EUserTriggered); | 225 void NotifyTextControlOfSelectionChange(EUserTriggered); |
| 226 | 226 |
| 227 String SelectedHTMLForClipboard() const; | 227 String SelectedHTMLForClipboard() const; |
| 228 String SelectedText(const TextIteratorBehavior&) const; | 228 String SelectedText(const TextIteratorBehavior&) const; |
| 229 String SelectedText() const; | 229 String SelectedText() const; |
| 230 String SelectedTextForClipboard() const; | 230 String SelectedTextForClipboard() const; |
| 231 | 231 |
| 232 // The bounds are clipped to the viewport as this is what callers expect. | 232 // The bounds are clipped to the viewport as this is what callers expect. |
| 233 // This returns last layouted selection bounds of LayoutSelection rather than |
| 234 // SelectionEditor keeps. |
| 233 LayoutRect Bounds() const; | 235 LayoutRect Bounds() const; |
| 234 LayoutRect UnclippedBounds() const; | 236 LayoutRect UnclippedBounds() const; |
| 235 | 237 |
| 236 // TODO(tkent): This function has a bug that scrolling doesn't work well in | 238 // TODO(tkent): This function has a bug that scrolling doesn't work well in |
| 237 // a case of RangeSelection. crbug.com/443061 | 239 // a case of RangeSelection. crbug.com/443061 |
| 238 void RevealSelection( | 240 void RevealSelection( |
| 239 const ScrollAlignment& = ScrollAlignment::kAlignCenterIfNeeded, | 241 const ScrollAlignment& = ScrollAlignment::kAlignCenterIfNeeded, |
| 240 RevealExtentOption = kDoNotRevealExtent); | 242 RevealExtentOption = kDoNotRevealExtent); |
| 241 void SetSelectionFromNone(); | 243 void SetSelectionFromNone(); |
| 242 | 244 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 312 |
| 311 } // namespace blink | 313 } // namespace blink |
| 312 | 314 |
| 313 #ifndef NDEBUG | 315 #ifndef NDEBUG |
| 314 // Outside the WebCore namespace for ease of invocation from gdb. | 316 // Outside the WebCore namespace for ease of invocation from gdb. |
| 315 void showTree(const blink::FrameSelection&); | 317 void showTree(const blink::FrameSelection&); |
| 316 void showTree(const blink::FrameSelection*); | 318 void showTree(const blink::FrameSelection*); |
| 317 #endif | 319 #endif |
| 318 | 320 |
| 319 #endif // FrameSelection_h | 321 #endif // FrameSelection_h |
| OLD | NEW |