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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h

Issue 2636963003: Revert of [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h (1/3) (Closed)
Patch Set: Fix conflicts Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 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 24 matching lines...) Expand all
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class EditingStyle; 38 class EditingStyle;
39 class Element; 39 class Element;
40 class HTMLBRElement; 40 class HTMLBRElement;
41 class HTMLElement; 41 class HTMLElement;
42 class HTMLSpanElement; 42 class HTMLSpanElement;
43 class Text; 43 class Text;
44 44
45 enum class EditCommandSource { kMenuOrKeyBinding, kDOM };
46
47 class CORE_EXPORT CompositeEditCommand : public EditCommand { 45 class CORE_EXPORT CompositeEditCommand : public EditCommand {
48 public: 46 public:
49 enum ShouldPreserveSelection { PreserveSelection, DoNotPreserveSelection }; 47 enum ShouldPreserveSelection { PreserveSelection, DoNotPreserveSelection };
50 enum ShouldPreserveStyle { PreserveStyle, DoNotPreserveStyle }; 48 enum ShouldPreserveStyle { PreserveStyle, DoNotPreserveStyle };
51 49
52 ~CompositeEditCommand() override; 50 ~CompositeEditCommand() override;
53 51
54 const VisibleSelection& startingSelection() const { 52 const VisibleSelection& startingSelection() const {
55 return m_startingSelection; 53 return m_startingSelection;
56 } 54 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 241
244 DEFINE_TYPE_CASTS(CompositeEditCommand, 242 DEFINE_TYPE_CASTS(CompositeEditCommand,
245 EditCommand, 243 EditCommand,
246 command, 244 command,
247 command->isCompositeEditCommand(), 245 command->isCompositeEditCommand(),
248 command.isCompositeEditCommand()); 246 command.isCompositeEditCommand());
249 247
250 } // namespace blink 248 } // namespace blink
251 249
252 #endif // CompositeEditCommand_h 250 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698