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

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

Issue 681553003: Remove a bunch of unused or never-set settings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/Position.cpp ('k') | sky/engine/core/editing/Caret.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 explicit CaretBase(CaretVisibility = Hidden); 47 explicit CaretBase(CaretVisibility = Hidden);
48 48
49 void invalidateCaretRect(Node*, bool caretRectChanged = false); 49 void invalidateCaretRect(Node*, bool caretRectChanged = false);
50 void clearCaretRect(); 50 void clearCaretRect();
51 // Creating VisiblePosition causes synchronous layout so we should use the 51 // Creating VisiblePosition causes synchronous layout so we should use the
52 // PositionWithAffinity version if possible. 52 // PositionWithAffinity version if possible.
53 // A position in HTMLTextFromControlElement is a typical example. 53 // A position in HTMLTextFromControlElement is a typical example.
54 bool updateCaretRect(Document*, const PositionWithAffinity& caretPosition); 54 bool updateCaretRect(Document*, const PositionWithAffinity& caretPosition);
55 bool updateCaretRect(Document*, const VisiblePosition& caretPosition); 55 bool updateCaretRect(Document*, const VisiblePosition& caretPosition);
56 IntRect absoluteBoundsForLocalRect(Node*, const LayoutRect&) const; 56 IntRect absoluteBoundsForLocalRect(Node*, const LayoutRect&) const;
57 bool shouldRepaintCaret(const RenderView*, bool isContentEditable) const;
58 void paintCaret(Node*, GraphicsContext*, const LayoutPoint&, const LayoutRec t& clipRect) const; 57 void paintCaret(Node*, GraphicsContext*, const LayoutPoint&, const LayoutRec t& clipRect) const;
59 58
60 const LayoutRect& localCaretRectWithoutUpdate() const { return m_caretLocalR ect; } 59 const LayoutRect& localCaretRectWithoutUpdate() const { return m_caretLocalR ect; }
61 60
62 bool shouldUpdateCaretRect() const { return m_caretRectNeedsUpdate; } 61 bool shouldUpdateCaretRect() const { return m_caretRectNeedsUpdate; }
63 void setCaretRectNeedsUpdate() { m_caretRectNeedsUpdate = true; } 62 void setCaretRectNeedsUpdate() { m_caretRectNeedsUpdate = true; }
64 63
65 void setCaretVisibility(CaretVisibility visibility) { m_caretVisibility = vi sibility; } 64 void setCaretVisibility(CaretVisibility visibility) { m_caretVisibility = vi sibility; }
66 bool caretIsVisible() const { return m_caretVisibility == Visible; } 65 bool caretIsVisible() const { return m_caretVisibility == Visible; }
67 CaretVisibility caretVisibility() const { return m_caretVisibility; } 66 CaretVisibility caretVisibility() const { return m_caretVisibility; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 private: 99 private:
101 DragCaretController(); 100 DragCaretController();
102 101
103 VisiblePosition m_position; 102 VisiblePosition m_position;
104 }; 103 };
105 104
106 } // namespace blink 105 } // namespace blink
107 106
108 107
109 #endif // Caret_h 108 #endif // Caret_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Position.cpp ('k') | sky/engine/core/editing/Caret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698