| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); | 191 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula
rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); |
| 192 void setFocusedNodeIfNeeded(); | 192 void setFocusedNodeIfNeeded(); |
| 193 void notifyRendererOfSelectionChange(EUserTriggered); | 193 void notifyRendererOfSelectionChange(EUserTriggered); |
| 194 | 194 |
| 195 EditingStyle* typingStyle() const; | 195 EditingStyle* typingStyle() const; |
| 196 void setTypingStyle(PassRefPtr<EditingStyle>); | 196 void setTypingStyle(PassRefPtr<EditingStyle>); |
| 197 void clearTypingStyle(); | 197 void clearTypingStyle(); |
| 198 | 198 |
| 199 String selectedText() const; | 199 String selectedText() const; |
| 200 | 200 |
| 201 FloatRect bounds() const; | |
| 202 | |
| 203 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); | 201 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf
Needed, RevealExtentOption = DoNotRevealExtent); |
| 204 void setSelectionFromNone(); | 202 void setSelectionFromNone(); |
| 205 | 203 |
| 206 void setShouldShowBlockCursor(bool); | 204 void setShouldShowBlockCursor(bool); |
| 207 | 205 |
| 208 // VisibleSelection::ChangeObserver interface. | 206 // VisibleSelection::ChangeObserver interface. |
| 209 virtual void didChangeVisibleSelection() override; | 207 virtual void didChangeVisibleSelection() override; |
| 210 | 208 |
| 211 private: | 209 private: |
| 212 explicit FrameSelection(LocalFrame*); | 210 explicit FrameSelection(LocalFrame*); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 } | 290 } |
| 293 } // namespace blink | 291 } // namespace blink |
| 294 | 292 |
| 295 #ifndef NDEBUG | 293 #ifndef NDEBUG |
| 296 // Outside the WebCore namespace for ease of invocation from gdb. | 294 // Outside the WebCore namespace for ease of invocation from gdb. |
| 297 void showTree(const blink::FrameSelection&); | 295 void showTree(const blink::FrameSelection&); |
| 298 void showTree(const blink::FrameSelection*); | 296 void showTree(const blink::FrameSelection*); |
| 299 #endif | 297 #endif |
| 300 | 298 |
| 301 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ | 299 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ |
| OLD | NEW |