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

Side by Side Diff: third_party/WebKit/Source/core/editing/FrameSelection.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void didSplitTextNode(const Text& oldNode); 185 void didSplitTextNode(const Text& oldNode);
186 186
187 bool isAppearanceDirty() const; 187 bool isAppearanceDirty() const;
188 void commitAppearanceIfNeeded(LayoutView&); 188 void commitAppearanceIfNeeded(LayoutView&);
189 void updateAppearance(ResetCaretBlinkOption = None); 189 void updateAppearance(ResetCaretBlinkOption = None);
190 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl e ? Visible : Hidden); } 190 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl e ? Visible : Hidden); }
191 bool isCaretBoundsDirty() const { return m_caretRectDirty; } 191 bool isCaretBoundsDirty() const { return m_caretRectDirty; }
192 void setCaretRectNeedsUpdate(); 192 void setCaretRectNeedsUpdate();
193 void scheduleVisualUpdate() const; 193 void scheduleVisualUpdate() const;
194 void invalidateCaretRect(); 194 void invalidateCaretRect();
195 void paintCaret(GraphicsContext*, const LayoutPoint&); 195 void paintCaret(GraphicsContext&, const LayoutPoint&);
196 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; } 196 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; }
197 197
198 // Used to suspend caret blinking while the mouse is down. 198 // Used to suspend caret blinking while the mouse is down.
199 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended = suspended; } 199 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended = suspended; }
200 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; } 200 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; }
201 201
202 // Focus 202 // Focus
203 void setFocused(bool); 203 void setFocused(bool);
204 bool isFocused() const { return m_focused; } 204 bool isFocused() const { return m_focused; }
205 bool isFocusedAndActive() const; 205 bool isFocusedAndActive() const;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 } // namespace blink 332 } // namespace blink
333 333
334 #ifndef NDEBUG 334 #ifndef NDEBUG
335 // Outside the WebCore namespace for ease of invocation from gdb. 335 // Outside the WebCore namespace for ease of invocation from gdb.
336 void showTree(const blink::FrameSelection&); 336 void showTree(const blink::FrameSelection&);
337 void showTree(const blink::FrameSelection*); 337 void showTree(const blink::FrameSelection*);
338 #endif 338 #endif
339 339
340 #endif // FrameSelection_h 340 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698