Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 CommandSource { MenuOrKeyBinding, Dom }; | |
|
Xiaocheng
2016/12/15 02:24:57
Please rename them as kMenuOrKeyBinding and kDOM.
chongz
2016/12/15 23:53:11
Done.
| |
| 46 | |
| 45 class EditCommandComposition final : public UndoStep { | 47 class EditCommandComposition final : public UndoStep { |
| 46 public: | 48 public: |
| 47 static EditCommandComposition* create(Document*, | 49 static EditCommandComposition* create(Document*, |
| 48 const VisibleSelection&, | 50 const VisibleSelection&, |
| 49 const VisibleSelection&, | 51 const VisibleSelection&, |
| 50 InputEvent::InputType); | 52 InputEvent::InputType); |
| 51 | 53 |
| 52 bool belongsTo(const LocalFrame&) const override; | 54 bool belongsTo(const LocalFrame&) const override; |
| 53 void unapply() override; | 55 void unapply() override; |
| 54 void reapply() override; | 56 void reapply() override; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 | 272 |
| 271 DEFINE_TYPE_CASTS(CompositeEditCommand, | 273 DEFINE_TYPE_CASTS(CompositeEditCommand, |
| 272 EditCommand, | 274 EditCommand, |
| 273 command, | 275 command, |
| 274 command->isCompositeEditCommand(), | 276 command->isCompositeEditCommand(), |
| 275 command.isCompositeEditCommand()); | 277 command.isCompositeEditCommand()); |
| 276 | 278 |
| 277 } // namespace blink | 279 } // namespace blink |
| 278 | 280 |
| 279 #endif // CompositeEditCommand_h | 281 #endif // CompositeEditCommand_h |
| OLD | NEW |