Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/FrameCaret.cpp |
| diff --git a/third_party/WebKit/Source/core/editing/FrameCaret.cpp b/third_party/WebKit/Source/core/editing/FrameCaret.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d9c036baa55002158d11c5443f92da4465a04fc4 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/editing/FrameCaret.cpp |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
yosin_UTC9
2016/05/19 08:32:36
Copyright text should be taken from FrameSelection
yoichio
2016/05/20 05:12:12
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "core/editing/FrameCaret.h" |
| + |
| +namespace blink { |
| + |
| +FrameCaret::FrameCaret(LocalFrame* frame) |
| + : m_frame(frame) |
| + , m_previousCaretVisibility(CaretVisibility::Hidden) |
| + , m_caretBlinkTimer(this, &FrameCaret::caretBlinkTimerFired) |
| + , m_caretRectDirty(true) |
| + , m_shouldPaintCaret(true) |
| + , m_isCaretBlinkingSuspended(false) |
| +{ |
| + DCHECK(frame); |
| +} |
| + |
| +DEFINE_TRACE(FrameCaret) |
| +{ |
| + visitor->trace(m_frame); |
| + visitor->trace(m_previousCaretNode); |
| + CaretBase::trace(visitor); |
| +} |
| + |
| +} // nemaspace blink |