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 33 matching lines...) Loading... |
44 #include "platform/wtf/Noncopyable.h" | 44 #include "platform/wtf/Noncopyable.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class DisplayItemClient; | 48 class DisplayItemClient; |
49 class LayoutBlock; | 49 class LayoutBlock; |
50 class LocalFrame; | 50 class LocalFrame; |
51 class FrameCaret; | 51 class FrameCaret; |
52 class GranularityStrategy; | 52 class GranularityStrategy; |
53 class GraphicsContext; | 53 class GraphicsContext; |
54 class HTMLFormElement; | |
55 class SelectionEditor; | 54 class SelectionEditor; |
56 class LayoutSelection; | 55 class LayoutSelection; |
57 class TextIteratorBehavior; | 56 class TextIteratorBehavior; |
58 struct PaintInvalidatorContext; | 57 struct PaintInvalidatorContext; |
59 | 58 |
60 enum class CursorAlignOnScroll { kIfNeeded, kAlways }; | 59 enum class CursorAlignOnScroll { kIfNeeded, kAlways }; |
61 | 60 |
62 enum EUserTriggered { kNotUserTriggered = 0, kUserTriggered = 1 }; | 61 enum EUserTriggered { kNotUserTriggered = 0, kUserTriggered = 1 }; |
63 | 62 |
64 enum RevealExtentOption { kRevealExtent, kDoNotRevealExtent }; | 63 enum RevealExtentOption { kRevealExtent, kDoNotRevealExtent }; |
(...skipping 163 matching lines...) Loading... |
228 | 227 |
229 String SelectedHTMLForClipboard() const; | 228 String SelectedHTMLForClipboard() const; |
230 String SelectedText(const TextIteratorBehavior&) const; | 229 String SelectedText(const TextIteratorBehavior&) const; |
231 String SelectedText() const; | 230 String SelectedText() const; |
232 String SelectedTextForClipboard() const; | 231 String SelectedTextForClipboard() const; |
233 | 232 |
234 // The bounds are clipped to the viewport as this is what callers expect. | 233 // The bounds are clipped to the viewport as this is what callers expect. |
235 LayoutRect Bounds() const; | 234 LayoutRect Bounds() const; |
236 LayoutRect UnclippedBounds() const; | 235 LayoutRect UnclippedBounds() const; |
237 | 236 |
238 HTMLFormElement* CurrentForm() const; | |
239 | |
240 // TODO(tkent): This function has a bug that scrolling doesn't work well in | 237 // TODO(tkent): This function has a bug that scrolling doesn't work well in |
241 // a case of RangeSelection. crbug.com/443061 | 238 // a case of RangeSelection. crbug.com/443061 |
242 void RevealSelection( | 239 void RevealSelection( |
243 const ScrollAlignment& = ScrollAlignment::kAlignCenterIfNeeded, | 240 const ScrollAlignment& = ScrollAlignment::kAlignCenterIfNeeded, |
244 RevealExtentOption = kDoNotRevealExtent); | 241 RevealExtentOption = kDoNotRevealExtent); |
245 void SetSelectionFromNone(); | 242 void SetSelectionFromNone(); |
246 | 243 |
247 void UpdateAppearance(); | 244 void UpdateAppearance(); |
248 bool ShouldShowBlockCursor() const; | 245 bool ShouldShowBlockCursor() const; |
249 void SetShouldShowBlockCursor(bool); | 246 void SetShouldShowBlockCursor(bool); |
(...skipping 64 matching lines...) Loading... |
314 | 311 |
315 } // namespace blink | 312 } // namespace blink |
316 | 313 |
317 #ifndef NDEBUG | 314 #ifndef NDEBUG |
318 // Outside the WebCore namespace for ease of invocation from gdb. | 315 // Outside the WebCore namespace for ease of invocation from gdb. |
319 void showTree(const blink::FrameSelection&); | 316 void showTree(const blink::FrameSelection&); |
320 void showTree(const blink::FrameSelection*); | 317 void showTree(const blink::FrameSelection*); |
321 #endif | 318 #endif |
322 | 319 |
323 #endif // FrameSelection_h | 320 #endif // FrameSelection_h |
OLD | NEW |