OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 21 matching lines...) Expand all Loading... |
32 #include "core/editing/EphemeralRange.h" | 32 #include "core/editing/EphemeralRange.h" |
33 #include "core/editing/FindOptions.h" | 33 #include "core/editing/FindOptions.h" |
34 #include "core/editing/FrameSelection.h" | 34 #include "core/editing/FrameSelection.h" |
35 #include "core/editing/VisibleSelection.h" | 35 #include "core/editing/VisibleSelection.h" |
36 #include "core/editing/WritingDirection.h" | 36 #include "core/editing/WritingDirection.h" |
37 #include "core/editing/commands/EditAction.h" | 37 #include "core/editing/commands/EditAction.h" |
38 #include "core/editing/iterators/TextIterator.h" | 38 #include "core/editing/iterators/TextIterator.h" |
39 #include "core/editing/markers/DocumentMarker.h" | 39 #include "core/editing/markers/DocumentMarker.h" |
40 #include "platform/PasteMode.h" | 40 #include "platform/PasteMode.h" |
41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
42 #include <memory> | |
43 | 42 |
44 namespace blink { | 43 namespace blink { |
45 | 44 |
46 class CompositeEditCommand; | 45 class CompositeEditCommand; |
47 class DummyPageHolder; | 46 class DummyPageHolder; |
48 class EditCommandComposition; | 47 class EditCommandComposition; |
49 class EditorClient; | 48 class EditorClient; |
50 class EditorInternalCommand; | 49 class EditorInternalCommand; |
51 class LocalFrame; | 50 class LocalFrame; |
52 class HitTestResult; | 51 class HitTestResult; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 friend class RevealSelectionScope; | 248 friend class RevealSelectionScope; |
250 | 249 |
251 DECLARE_TRACE(); | 250 DECLARE_TRACE(); |
252 | 251 |
253 private: | 252 private: |
254 Member<LocalFrame> m_frame; | 253 Member<LocalFrame> m_frame; |
255 Member<CompositeEditCommand> m_lastEditCommand; | 254 Member<CompositeEditCommand> m_lastEditCommand; |
256 int m_preventRevealSelection; | 255 int m_preventRevealSelection; |
257 bool m_shouldStartNewKillRingSequence; | 256 bool m_shouldStartNewKillRingSequence; |
258 bool m_shouldStyleWithCSS; | 257 bool m_shouldStyleWithCSS; |
259 const std::unique_ptr<KillRing> m_killRing; | 258 const OwnPtr<KillRing> m_killRing; |
260 VisibleSelection m_mark; | 259 VisibleSelection m_mark; |
261 bool m_areMarkedTextMatchesHighlighted; | 260 bool m_areMarkedTextMatchesHighlighted; |
262 EditorParagraphSeparator m_defaultParagraphSeparator; | 261 EditorParagraphSeparator m_defaultParagraphSeparator; |
263 bool m_overwriteModeEnabled; | 262 bool m_overwriteModeEnabled; |
264 | 263 |
265 explicit Editor(LocalFrame&); | 264 explicit Editor(LocalFrame&); |
266 | 265 |
267 LocalFrame& frame() const | 266 LocalFrame& frame() const |
268 { | 267 { |
269 DCHECK(m_frame); | 268 DCHECK(m_frame); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 313 |
315 inline bool Editor::markedTextMatchesAreHighlighted() const | 314 inline bool Editor::markedTextMatchesAreHighlighted() const |
316 { | 315 { |
317 return m_areMarkedTextMatchesHighlighted; | 316 return m_areMarkedTextMatchesHighlighted; |
318 } | 317 } |
319 | 318 |
320 | 319 |
321 } // namespace blink | 320 } // namespace blink |
322 | 321 |
323 #endif // Editor_h | 322 #endif // Editor_h |
OLD | NEW |