| 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 void SetCaretVisibility(CaretVisibility); | 70 void SetCaretVisibility(CaretVisibility); |
| 71 IntRect AbsoluteCaretBounds() const; | 71 IntRect AbsoluteCaretBounds() const; |
| 72 | 72 |
| 73 bool ShouldShowBlockCursor() const { return should_show_block_cursor_; } | 73 bool ShouldShowBlockCursor() const { return should_show_block_cursor_; } |
| 74 void SetShouldShowBlockCursor(bool); | 74 void SetShouldShowBlockCursor(bool); |
| 75 | 75 |
| 76 // Paint invalidation methods delegating to DisplayItemClient. | 76 // Paint invalidation methods delegating to DisplayItemClient. |
| 77 void ClearPreviousVisualRect(const LayoutBlock&); | 77 void ClearPreviousVisualRect(const LayoutBlock&); |
| 78 void LayoutBlockWillBeDestroyed(const LayoutBlock&); | 78 void LayoutBlockWillBeDestroyed(const LayoutBlock&); |
| 79 void UpdateStyleAndLayoutIfNeeded(); | 79 void UpdateStyleAndLayoutIfNeeded(); |
| 80 void InvalidatePaintIfNeeded(const LayoutBlock&, | 80 void InvalidatePaint(const LayoutBlock&, const PaintInvalidatorContext&); |
| 81 const PaintInvalidatorContext&); | |
| 82 | 81 |
| 83 bool ShouldPaintCaret(const LayoutBlock&) const; | 82 bool ShouldPaintCaret(const LayoutBlock&) const; |
| 84 void PaintCaret(GraphicsContext&, const LayoutPoint&) const; | 83 void PaintCaret(GraphicsContext&, const LayoutPoint&) const; |
| 85 | 84 |
| 86 // For unit tests. | 85 // For unit tests. |
| 87 const DisplayItemClient& CaretDisplayItemClientForTesting() const; | 86 const DisplayItemClient& CaretDisplayItemClientForTesting() const; |
| 88 const LayoutBlock* CaretLayoutBlockForTesting() const; | 87 const LayoutBlock* CaretLayoutBlockForTesting() const; |
| 89 bool ShouldPaintCaretForTesting() const { return should_paint_caret_; } | 88 bool ShouldPaintCaretForTesting() const { return should_paint_caret_; } |
| 90 void RecreateCaretBlinkTimerForTesting(RefPtr<WebTaskRunner>); | 89 void RecreateCaretBlinkTimerForTesting(RefPtr<WebTaskRunner>); |
| 91 | 90 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 110 bool should_paint_caret_ : 1; | 109 bool should_paint_caret_ : 1; |
| 111 bool is_caret_blinking_suspended_ : 1; | 110 bool is_caret_blinking_suspended_ : 1; |
| 112 bool should_show_block_cursor_ : 1; | 111 bool should_show_block_cursor_ : 1; |
| 113 | 112 |
| 114 DISALLOW_COPY_AND_ASSIGN(FrameCaret); | 113 DISALLOW_COPY_AND_ASSIGN(FrameCaret); |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace blink | 116 } // namespace blink |
| 118 | 117 |
| 119 #endif // FrameCaret_h | 118 #endif // FrameCaret_h |
| OLD | NEW |