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

Side by Side Diff: Source/core/editing/Editor.h

Issue 1306003002: Make classes and structures in core/editing fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months 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
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class Pasteboard; 53 class Pasteboard;
54 class SpellChecker; 54 class SpellChecker;
55 class StylePropertySet; 55 class StylePropertySet;
56 class TextEvent; 56 class TextEvent;
57 class UndoStack; 57 class UndoStack;
58 58
59 enum EditorCommandSource { CommandFromMenuOrKeyBinding, CommandFromDOM }; 59 enum EditorCommandSource { CommandFromMenuOrKeyBinding, CommandFromDOM };
60 enum EditorParagraphSeparator { EditorParagraphSeparatorIsDiv, EditorParagraphSe paratorIsP }; 60 enum EditorParagraphSeparator { EditorParagraphSeparatorIsDiv, EditorParagraphSe paratorIsP };
61 61
62 class CORE_EXPORT Editor final : public NoBaseWillBeGarbageCollectedFinalized<Ed itor> { 62 class CORE_EXPORT Editor final : public NoBaseWillBeGarbageCollectedFinalized<Ed itor> {
63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(Editor);
63 WTF_MAKE_NONCOPYABLE(Editor); 64 WTF_MAKE_NONCOPYABLE(Editor);
64 public: 65 public:
65 static PassOwnPtrWillBeRawPtr<Editor> create(LocalFrame&); 66 static PassOwnPtrWillBeRawPtr<Editor> create(LocalFrame&);
66 ~Editor(); 67 ~Editor();
67 68
68 EditorClient& client() const; 69 EditorClient& client() const;
69 70
70 CompositeEditCommand* lastEditCommand() { return m_lastEditCommand.get(); } 71 CompositeEditCommand* lastEditCommand() { return m_lastEditCommand.get(); }
71 72
72 void handleKeyboardEvent(KeyboardEvent*); 73 void handleKeyboardEvent(KeyboardEvent*);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 301
301 inline bool Editor::markedTextMatchesAreHighlighted() const 302 inline bool Editor::markedTextMatchesAreHighlighted() const
302 { 303 {
303 return m_areMarkedTextMatchesHighlighted; 304 return m_areMarkedTextMatchesHighlighted;
304 } 305 }
305 306
306 307
307 } // namespace blink 308 } // namespace blink
308 309
309 #endif // Editor_h 310 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698