| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 return client; | 139 return client; |
| 140 } | 140 } |
| 141 | 141 |
| 142 EditorClient& Editor::client() const | 142 EditorClient& Editor::client() const |
| 143 { | 143 { |
| 144 if (Page* page = frame().page()) | 144 if (Page* page = frame().page()) |
| 145 return page->editorClient(); | 145 return page->editorClient(); |
| 146 return emptyEditorClient(); | 146 return emptyEditorClient(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 CompositeEditCommand* Editor::lastEditCommand() const | |
| 150 { | |
| 151 return m_lastEditCommand.get(); | |
| 152 } | |
| 153 | |
| 154 UndoStack* Editor::undoStack() const | 149 UndoStack* Editor::undoStack() const |
| 155 { | 150 { |
| 156 if (Page* page = frame().page()) | 151 if (Page* page = frame().page()) |
| 157 return &page->undoStack(); | 152 return &page->undoStack(); |
| 158 return 0; | 153 return 0; |
| 159 } | 154 } |
| 160 | 155 |
| 161 bool Editor::handleTextEvent(TextEvent* event) | 156 bool Editor::handleTextEvent(TextEvent* event) |
| 162 { | 157 { |
| 163 // Default event handling for Drag and Drop will be handled by DragControlle
r | 158 // Default event handling for Drag and Drop will be handled by DragControlle
r |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 } | 1301 } |
| 1307 | 1302 |
| 1308 DEFINE_TRACE(Editor) | 1303 DEFINE_TRACE(Editor) |
| 1309 { | 1304 { |
| 1310 visitor->trace(m_frame); | 1305 visitor->trace(m_frame); |
| 1311 visitor->trace(m_lastEditCommand); | 1306 visitor->trace(m_lastEditCommand); |
| 1312 visitor->trace(m_mark); | 1307 visitor->trace(m_mark); |
| 1313 } | 1308 } |
| 1314 | 1309 |
| 1315 } // namespace blink | 1310 } // namespace blink |
| OLD | NEW |