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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 class CORE_EXPORT Editor final : public NoBaseWillBeGarbageCollectedFinalized<Ed
itor> { | 62 class CORE_EXPORT Editor final : public NoBaseWillBeGarbageCollectedFinalized<Ed
itor> { |
63 USING_FAST_MALLOC_WILL_BE_REMOVED(Editor); | 63 USING_FAST_MALLOC_WILL_BE_REMOVED(Editor); |
64 WTF_MAKE_NONCOPYABLE(Editor); | 64 WTF_MAKE_NONCOPYABLE(Editor); |
65 public: | 65 public: |
66 static PassOwnPtrWillBeRawPtr<Editor> create(LocalFrame&); | 66 static PassOwnPtrWillBeRawPtr<Editor> create(LocalFrame&); |
67 ~Editor(); | 67 ~Editor(); |
68 | 68 |
69 EditorClient& client() const; | 69 EditorClient& client() const; |
70 | 70 |
71 CompositeEditCommand* lastEditCommand() { return m_lastEditCommand.get(); } | 71 CompositeEditCommand* lastEditCommand() const; |
72 | 72 |
73 void handleKeyboardEvent(KeyboardEvent*); | 73 void handleKeyboardEvent(KeyboardEvent*); |
74 bool handleTextEvent(TextEvent*); | 74 bool handleTextEvent(TextEvent*); |
75 | 75 |
76 bool canEdit() const; | 76 bool canEdit() const; |
77 bool canEditRichly() const; | 77 bool canEditRichly() const; |
78 | 78 |
79 bool canDHTMLCut(); | 79 bool canDHTMLCut(); |
80 bool canDHTMLCopy(); | 80 bool canDHTMLCopy(); |
81 | 81 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 inline bool Editor::markedTextMatchesAreHighlighted() const | 302 inline bool Editor::markedTextMatchesAreHighlighted() const |
303 { | 303 { |
304 return m_areMarkedTextMatchesHighlighted; | 304 return m_areMarkedTextMatchesHighlighted; |
305 } | 305 } |
306 | 306 |
307 | 307 |
308 } // namespace blink | 308 } // namespace blink |
309 | 309 |
310 #endif // Editor_h | 310 #endif // Editor_h |
OLD | NEW |