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

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

Issue 153343003: Move Clipboard-related code from core/dom to core/clipboard (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/editing/Editor.h" 28 #include "core/editing/Editor.h"
29 29
30 #include "CSSPropertyNames.h" 30 #include "CSSPropertyNames.h"
31 #include "HTMLNames.h" 31 #include "HTMLNames.h"
32 #include "SVGNames.h" 32 #include "SVGNames.h"
33 #include "XLinkNames.h" 33 #include "XLinkNames.h"
34 #include "bindings/v8/ExceptionStatePlaceholder.h" 34 #include "bindings/v8/ExceptionStatePlaceholder.h"
35 #include "core/accessibility/AXObjectCache.h" 35 #include "core/accessibility/AXObjectCache.h"
36 #include "core/clipboard/Clipboard.h"
37 #include "core/clipboard/DataObject.h"
38 #include "core/clipboard/Pasteboard.h"
36 #include "core/css/CSSComputedStyleDeclaration.h" 39 #include "core/css/CSSComputedStyleDeclaration.h"
37 #include "core/css/StylePropertySet.h" 40 #include "core/css/StylePropertySet.h"
38 #include "core/dom/Clipboard.h"
39 #include "core/dom/DataObject.h"
40 #include "core/dom/DocumentFragment.h" 41 #include "core/dom/DocumentFragment.h"
41 #include "core/dom/DocumentMarkerController.h" 42 #include "core/dom/DocumentMarkerController.h"
42 #include "core/dom/NodeList.h" 43 #include "core/dom/NodeList.h"
43 #include "core/dom/NodeTraversal.h" 44 #include "core/dom/NodeTraversal.h"
44 #include "core/dom/ParserContentPolicy.h" 45 #include "core/dom/ParserContentPolicy.h"
45 #include "core/dom/Pasteboard.h"
46 #include "core/dom/Text.h" 46 #include "core/dom/Text.h"
47 #include "core/editing/ApplyStyleCommand.h" 47 #include "core/editing/ApplyStyleCommand.h"
48 #include "core/editing/DeleteSelectionCommand.h" 48 #include "core/editing/DeleteSelectionCommand.h"
49 #include "core/editing/IndentOutdentCommand.h" 49 #include "core/editing/IndentOutdentCommand.h"
50 #include "core/editing/InputMethodController.h" 50 #include "core/editing/InputMethodController.h"
51 #include "core/editing/InsertListCommand.h" 51 #include "core/editing/InsertListCommand.h"
52 #include "core/editing/RemoveFormatCommand.h" 52 #include "core/editing/RemoveFormatCommand.h"
53 #include "core/editing/RenderedPosition.h" 53 #include "core/editing/RenderedPosition.h"
54 #include "core/editing/ReplaceSelectionCommand.h" 54 #include "core/editing/ReplaceSelectionCommand.h"
55 #include "core/editing/SimplifyMarkupCommand.h" 55 #include "core/editing/SimplifyMarkupCommand.h"
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 return m_frame.spellChecker(); 1231 return m_frame.spellChecker();
1232 } 1232 }
1233 1233
1234 void Editor::toggleOverwriteModeEnabled() 1234 void Editor::toggleOverwriteModeEnabled()
1235 { 1235 {
1236 m_overwriteModeEnabled = !m_overwriteModeEnabled; 1236 m_overwriteModeEnabled = !m_overwriteModeEnabled;
1237 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); 1237 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled);
1238 } 1238 }
1239 1239
1240 } // namespace WebCore 1240 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698