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

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

Issue 17388003: Remove unused includes from core/{editing,fileapi,history,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 6 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
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.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 10 matching lines...) Expand all
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
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 "CSSValueKeywords.h"
32 #include "HTMLNames.h" 31 #include "HTMLNames.h"
33 #include "core/accessibility/AXObjectCache.h" 32 #include "core/accessibility/AXObjectCache.h"
34 #include "core/css/CSSComputedStyleDeclaration.h" 33 #include "core/css/CSSComputedStyleDeclaration.h"
35 #include "core/css/StylePropertySet.h" 34 #include "core/css/StylePropertySet.h"
36 #include "core/css/resolver/StyleResolver.h"
37 #include "core/dom/Clipboard.h" 35 #include "core/dom/Clipboard.h"
38 #include "core/dom/ClipboardEvent.h" 36 #include "core/dom/ClipboardEvent.h"
39 #include "core/dom/CompositionEvent.h" 37 #include "core/dom/CompositionEvent.h"
40 #include "core/dom/DocumentFragment.h" 38 #include "core/dom/DocumentFragment.h"
41 #include "core/dom/DocumentMarkerController.h" 39 #include "core/dom/DocumentMarkerController.h"
42 #include "core/dom/EventNames.h" 40 #include "core/dom/EventNames.h"
43 #include "core/dom/ExceptionCodePlaceholder.h" 41 #include "core/dom/ExceptionCodePlaceholder.h"
44 #include "core/dom/KeyboardEvent.h" 42 #include "core/dom/KeyboardEvent.h"
45 #include "core/dom/NodeList.h" 43 #include "core/dom/NodeList.h"
46 #include "core/dom/NodeTraversal.h" 44 #include "core/dom/NodeTraversal.h"
47 #include "core/dom/Text.h" 45 #include "core/dom/Text.h"
48 #include "core/dom/TextEvent.h" 46 #include "core/dom/TextEvent.h"
49 #include "core/dom/UserTypingGestureIndicator.h" 47 #include "core/dom/UserTypingGestureIndicator.h"
50 #include "core/dom/shadow/ShadowRoot.h"
51 #include "core/editing/ApplyStyleCommand.h" 48 #include "core/editing/ApplyStyleCommand.h"
52 #include "core/editing/CreateLinkCommand.h"
53 #include "core/editing/DeleteSelectionCommand.h" 49 #include "core/editing/DeleteSelectionCommand.h"
54 #include "core/editing/IndentOutdentCommand.h" 50 #include "core/editing/IndentOutdentCommand.h"
55 #include "core/editing/InsertListCommand.h" 51 #include "core/editing/InsertListCommand.h"
56 #include "core/editing/ModifySelectionListLevel.h" 52 #include "core/editing/ModifySelectionListLevel.h"
57 #include "core/editing/RemoveFormatCommand.h" 53 #include "core/editing/RemoveFormatCommand.h"
58 #include "core/editing/RenderedPosition.h" 54 #include "core/editing/RenderedPosition.h"
59 #include "core/editing/ReplaceSelectionCommand.h" 55 #include "core/editing/ReplaceSelectionCommand.h"
60 #include "core/editing/SimplifyMarkupCommand.h" 56 #include "core/editing/SimplifyMarkupCommand.h"
61 #include "core/editing/SpellChecker.h" 57 #include "core/editing/SpellChecker.h"
62 #include "core/editing/SpellingCorrectionCommand.h"
63 #include "core/editing/TextCheckingHelper.h" 58 #include "core/editing/TextCheckingHelper.h"
64 #include "core/editing/TextIterator.h" 59 #include "core/editing/TextIterator.h"
65 #include "core/editing/TypingCommand.h" 60 #include "core/editing/TypingCommand.h"
66 #include "core/editing/VisibleUnits.h" 61 #include "core/editing/VisibleUnits.h"
67 #include "core/editing/htmlediting.h" 62 #include "core/editing/htmlediting.h"
68 #include "core/editing/markup.h" 63 #include "core/editing/markup.h"
69 #include "core/html/HTMLFormControlElement.h"
70 #include "core/html/HTMLFrameOwnerElement.h"
71 #include "core/html/HTMLImageElement.h" 64 #include "core/html/HTMLImageElement.h"
72 #include "core/html/HTMLTextAreaElement.h" 65 #include "core/html/HTMLTextAreaElement.h"
73 #include "core/loader/cache/CachedResourceLoader.h" 66 #include "core/loader/cache/CachedResourceLoader.h"
74 #include "core/page/EditorClient.h" 67 #include "core/page/EditorClient.h"
75 #include "core/page/EventHandler.h" 68 #include "core/page/EventHandler.h"
76 #include "core/page/FocusController.h" 69 #include "core/page/FocusController.h"
77 #include "core/page/Frame.h" 70 #include "core/page/Frame.h"
78 #include "core/page/FrameTree.h"
79 #include "core/page/FrameView.h" 71 #include "core/page/FrameView.h"
80 #include "core/page/Page.h" 72 #include "core/page/Page.h"
81 #include "core/page/Settings.h" 73 #include "core/page/Settings.h"
82 #include "core/platform/KillRing.h" 74 #include "core/platform/KillRing.h"
83 #include "core/platform/Pasteboard.h" 75 #include "core/platform/Pasteboard.h"
84 #include "core/platform/Sound.h" 76 #include "core/platform/Sound.h"
85 #include "core/platform/graphics/GraphicsContext.h"
86 #include "core/platform/text/TextCheckerClient.h" 77 #include "core/platform/text/TextCheckerClient.h"
87 #include "core/rendering/HitTestResult.h" 78 #include "core/rendering/HitTestResult.h"
88 #include "core/rendering/RenderBlock.h" 79 #include "core/rendering/RenderBlock.h"
89 #include "core/rendering/RenderPart.h"
90 #include "core/rendering/RenderTextControl.h" 80 #include "core/rendering/RenderTextControl.h"
91 #include <wtf/unicode/CharacterNames.h> 81 #include "wtf/unicode/CharacterNames.h"
92 #include <wtf/unicode/Unicode.h>
93 #include <wtf/UnusedParam.h>
94 82
95 namespace WebCore { 83 namespace WebCore {
96 84
97 using namespace std; 85 using namespace std;
98 using namespace HTMLNames; 86 using namespace HTMLNames;
99 using namespace WTF; 87 using namespace WTF;
100 using namespace Unicode; 88 using namespace Unicode;
101 89
102 // When an event handler has moved the selection outside of a text control 90 // When an event handler has moved the selection outside of a text control
103 // we should use the target control's selection for this editing operation. 91 // we should use the target control's selection for this editing operation.
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2355 return WebCore::unifiedTextCheckerEnabled(m_frame); 2343 return WebCore::unifiedTextCheckerEnabled(m_frame);
2356 } 2344 }
2357 2345
2358 void Editor::toggleOverwriteModeEnabled() 2346 void Editor::toggleOverwriteModeEnabled()
2359 { 2347 {
2360 m_overwriteModeEnabled = !m_overwriteModeEnabled; 2348 m_overwriteModeEnabled = !m_overwriteModeEnabled;
2361 frame()->selection()->setShouldShowBlockCursor(m_overwriteModeEnabled); 2349 frame()->selection()->setShouldShowBlockCursor(m_overwriteModeEnabled);
2362 }; 2350 };
2363 2351
2364 } // namespace WebCore 2352 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698