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

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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, 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
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
149 UndoStack* Editor::undoStack() const 154 UndoStack* Editor::undoStack() const
150 { 155 {
151 if (Page* page = frame().page()) 156 if (Page* page = frame().page())
152 return &page->undoStack(); 157 return &page->undoStack();
153 return 0; 158 return 0;
154 } 159 }
155 160
156 bool Editor::handleTextEvent(TextEvent* event) 161 bool Editor::handleTextEvent(TextEvent* event)
157 { 162 {
158 // Default event handling for Drag and Drop will be handled by DragControlle r 163 // 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
1301 } 1306 }
1302 1307
1303 DEFINE_TRACE(Editor) 1308 DEFINE_TRACE(Editor)
1304 { 1309 {
1305 visitor->trace(m_frame); 1310 visitor->trace(m_frame);
1306 visitor->trace(m_lastEditCommand); 1311 visitor->trace(m_lastEditCommand);
1307 visitor->trace(m_mark); 1312 visitor->trace(m_mark);
1308 } 1313 }
1309 1314
1310 } // namespace blink 1315 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.h ('k') | third_party/WebKit/Source/core/events/PopStateEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698