| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/platform/graphics/LayoutRect.h" | 34 #include "core/platform/graphics/LayoutRect.h" |
| 35 #include "core/rendering/ScrollBehavior.h" | 35 #include "core/rendering/ScrollBehavior.h" |
| 36 #include <wtf/Noncopyable.h> | 36 #include <wtf/Noncopyable.h> |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 class CharacterData; | 40 class CharacterData; |
| 41 class Frame; | 41 class Frame; |
| 42 class GraphicsContext; | 42 class GraphicsContext; |
| 43 class HTMLFormElement; | 43 class HTMLFormElement; |
| 44 class MutableStylePropertySet; |
| 44 class RenderObject; | 45 class RenderObject; |
| 45 class RenderView; | 46 class RenderView; |
| 46 class Settings; | 47 class Settings; |
| 47 class StylePropertySet; | |
| 48 class VisiblePosition; | 48 class VisiblePosition; |
| 49 | 49 |
| 50 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; | 50 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; |
| 51 | 51 |
| 52 enum RevealExtentOption { | 52 enum RevealExtentOption { |
| 53 RevealExtent, | 53 RevealExtent, |
| 54 DoNotRevealExtent | 54 DoNotRevealExtent |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 class CaretBase { | 57 class CaretBase { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool shouldChangeSelection(const VisibleSelection&) const; | 236 bool shouldChangeSelection(const VisibleSelection&) const; |
| 237 bool shouldDeleteSelection(const VisibleSelection&) const; | 237 bool shouldDeleteSelection(const VisibleSelection&) const; |
| 238 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd
points }; | 238 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd
points }; |
| 239 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | 239 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); |
| 240 void setFocusedNodeIfNeeded(); | 240 void setFocusedNodeIfNeeded(); |
| 241 void notifyRendererOfSelectionChange(EUserTriggered); | 241 void notifyRendererOfSelectionChange(EUserTriggered); |
| 242 | 242 |
| 243 void paintDragCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect&
clipRect) const; | 243 void paintDragCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect&
clipRect) const; |
| 244 | 244 |
| 245 EditingStyle* typingStyle() const; | 245 EditingStyle* typingStyle() const; |
| 246 PassRefPtr<StylePropertySet> copyTypingStyle() const; | 246 PassRefPtr<MutableStylePropertySet> copyTypingStyle() const; |
| 247 void setTypingStyle(PassRefPtr<EditingStyle>); | 247 void setTypingStyle(PassRefPtr<EditingStyle>); |
| 248 void clearTypingStyle(); | 248 void clearTypingStyle(); |
| 249 | 249 |
| 250 FloatRect bounds(bool clipToVisibleContent = true) const; | 250 FloatRect bounds(bool clipToVisibleContent = true) const; |
| 251 | 251 |
| 252 void getClippedVisibleTextRectangles(Vector<FloatRect>&) const; | 252 void getClippedVisibleTextRectangles(Vector<FloatRect>&) const; |
| 253 | 253 |
| 254 HTMLFormElement* currentForm() const; | 254 HTMLFormElement* currentForm() const; |
| 255 | 255 |
| 256 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); | 256 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 } // namespace WebCore | 331 } // namespace WebCore |
| 332 | 332 |
| 333 #ifndef NDEBUG | 333 #ifndef NDEBUG |
| 334 // Outside the WebCore namespace for ease of invocation from gdb. | 334 // Outside the WebCore namespace for ease of invocation from gdb. |
| 335 void showTree(const WebCore::FrameSelection&); | 335 void showTree(const WebCore::FrameSelection&); |
| 336 void showTree(const WebCore::FrameSelection*); | 336 void showTree(const WebCore::FrameSelection*); |
| 337 #endif | 337 #endif |
| 338 | 338 |
| 339 #endif // FrameSelection_h | 339 #endif // FrameSelection_h |
| OLD | NEW |