| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 bool isPreviousCaretDirtyForTesting() const { return m_previousCaretNode; } | 70 bool isPreviousCaretDirtyForTesting() const { return m_previousCaretNode; } |
| 71 | 71 |
| 72 DECLARE_VIRTUAL_TRACE(); | 72 DECLARE_VIRTUAL_TRACE(); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 friend class FrameSelectionTest; | 75 friend class FrameSelectionTest; |
| 76 | 76 |
| 77 const PositionWithAffinity caretPosition() const; | 77 const PositionWithAffinity caretPosition() const; |
| 78 | 78 |
| 79 bool shouldBlinkCaret() const; | 79 bool shouldBlinkCaret() const; |
| 80 void caretBlinkTimerFired(Timer<FrameCaret>*); | 80 void caretBlinkTimerFired(TimerBase*); |
| 81 bool caretPositionIsValidForDocument(const Document&) const; | 81 bool caretPositionIsValidForDocument(const Document&) const; |
| 82 | 82 |
| 83 const Member<const SelectionEditor> m_selectionEditor; | 83 const Member<const SelectionEditor> m_selectionEditor; |
| 84 const Member<LocalFrame> m_frame; | 84 const Member<LocalFrame> m_frame; |
| 85 // The last node which painted the caret. Retained for clearing the old | 85 // The last node which painted the caret. Retained for clearing the old |
| 86 // caret when it moves. | 86 // caret when it moves. |
| 87 Member<Node> m_previousCaretNode; | 87 Member<Node> m_previousCaretNode; |
| 88 LayoutRect m_previousCaretRect; | 88 LayoutRect m_previousCaretRect; |
| 89 CaretVisibility m_previousCaretVisibility; | 89 CaretVisibility m_previousCaretVisibility; |
| 90 Timer<FrameCaret> m_caretBlinkTimer; | 90 Timer<FrameCaret> m_caretBlinkTimer; |
| 91 bool m_caretRectDirty : 1; | 91 bool m_caretRectDirty : 1; |
| 92 bool m_shouldPaintCaret : 1; | 92 bool m_shouldPaintCaret : 1; |
| 93 bool m_isCaretBlinkingSuspended : 1; | 93 bool m_isCaretBlinkingSuspended : 1; |
| 94 bool m_shouldShowBlockCursor : 1; | 94 bool m_shouldShowBlockCursor : 1; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // FrameCaret_h | 99 #endif // FrameCaret_h |
| OLD | NEW |