Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: sky/engine/core/editing/FrameSelection.h

Issue 865383003: Consolidate callers to scheduleVisualUpdate. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 PassRefPtr<Range> toNormalizedRange() const { return m_selection.toNormalize dRange(); } 161 PassRefPtr<Range> toNormalizedRange() const { return m_selection.toNormalize dRange(); }
162 162
163 void nodeWillBeRemoved(Node&); 163 void nodeWillBeRemoved(Node&);
164 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen gth, unsigned newLength); 164 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen gth, unsigned newLength);
165 void didMergeTextNodes(const Text& oldNode, unsigned offset); 165 void didMergeTextNodes(const Text& oldNode, unsigned offset);
166 void didSplitTextNode(const Text& oldNode); 166 void didSplitTextNode(const Text& oldNode);
167 167
168 void updateAppearance(ResetCaretBlinkOption = None); 168 void updateAppearance(ResetCaretBlinkOption = None);
169 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl e ? Visible : Hidden); } 169 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl e ? Visible : Hidden); }
170 void setCaretRectNeedsUpdate(); 170 void setCaretRectNeedsUpdate();
171 void scheduleVisualUpdate() const;
172 void paintCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect& clip Rect); 171 void paintCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect& clip Rect);
173 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; } 172 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; }
174 173
175 // Used to suspend caret blinking while the mouse is down. 174 // Used to suspend caret blinking while the mouse is down.
176 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended = suspended; } 175 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended = suspended; }
177 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; } 176 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; }
178 177
179 // Focus 178 // Focus
180 void setFocused(bool); 179 void setFocused(bool);
181 bool isFocused() const { return m_focused; } 180 bool isFocused() const { return m_focused; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 VisiblePosition modifyMovingRight(TextGranularity); 224 VisiblePosition modifyMovingRight(TextGranularity);
226 VisiblePosition modifyMovingForward(TextGranularity); 225 VisiblePosition modifyMovingForward(TextGranularity);
227 VisiblePosition modifyExtendingLeft(TextGranularity); 226 VisiblePosition modifyExtendingLeft(TextGranularity);
228 VisiblePosition modifyExtendingBackward(TextGranularity); 227 VisiblePosition modifyExtendingBackward(TextGranularity);
229 VisiblePosition modifyMovingLeft(TextGranularity); 228 VisiblePosition modifyMovingLeft(TextGranularity);
230 VisiblePosition modifyMovingBackward(TextGranularity); 229 VisiblePosition modifyMovingBackward(TextGranularity);
231 230
232 LayoutUnit lineDirectionPointForBlockDirectionNavigation(EPositionType); 231 LayoutUnit lineDirectionPointForBlockDirectionNavigation(EPositionType);
233 232
234 void notifyAccessibilityForSelectionChange(); 233 void notifyAccessibilityForSelectionChange();
235 void notifyCompositorForSelectionChange();
236 234
237 void focusedOrActiveStateChanged(); 235 void focusedOrActiveStateChanged();
238 236
239 void caretBlinkTimerFired(Timer<FrameSelection>*); 237 void caretBlinkTimerFired(Timer<FrameSelection>*);
240 238
241 void setCaretVisibility(CaretVisibility); 239 void setCaretVisibility(CaretVisibility);
242 bool shouldBlinkCaret() const; 240 bool shouldBlinkCaret() const;
243 241
244 bool dispatchSelectStart(); 242 bool dispatchSelectStart();
245 243
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 288 }
291 } // namespace blink 289 } // namespace blink
292 290
293 #ifndef NDEBUG 291 #ifndef NDEBUG
294 // Outside the WebCore namespace for ease of invocation from gdb. 292 // Outside the WebCore namespace for ease of invocation from gdb.
295 void showTree(const blink::FrameSelection&); 293 void showTree(const blink::FrameSelection&);
296 void showTree(const blink::FrameSelection*); 294 void showTree(const blink::FrameSelection*);
297 #endif 295 #endif
298 296
299 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ 297 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698