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

Side by Side Diff: sky/engine/core/editing/ReplaceSelectionCommand.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 MovingParagraph = 1 << 4, 44 MovingParagraph = 1 << 4,
45 }; 45 };
46 46
47 typedef unsigned CommandOptions; 47 typedef unsigned CommandOptions;
48 48
49 static PassRefPtr<ReplaceSelectionCommand> create(Document& document, PassRe fPtr<DocumentFragment> fragment, CommandOptions options, EditAction action = Edi tActionPaste) 49 static PassRefPtr<ReplaceSelectionCommand> create(Document& document, PassRe fPtr<DocumentFragment> fragment, CommandOptions options, EditAction action = Edi tActionPaste)
50 { 50 {
51 return adoptRef(new ReplaceSelectionCommand(document, fragment, options, action)); 51 return adoptRef(new ReplaceSelectionCommand(document, fragment, options, action));
52 } 52 }
53 53
54 virtual void trace(Visitor*) override;
55
56 private: 54 private:
57 ReplaceSelectionCommand(Document&, PassRefPtr<DocumentFragment>, CommandOpti ons, EditAction); 55 ReplaceSelectionCommand(Document&, PassRefPtr<DocumentFragment>, CommandOpti ons, EditAction);
58 56
59 virtual void doApply() override; 57 virtual void doApply() override;
60 virtual EditAction editingAction() const override; 58 virtual EditAction editingAction() const override;
61 59
62 class InsertedNodes { 60 class InsertedNodes {
63 STACK_ALLOCATED(); 61 STACK_ALLOCATED();
64 public: 62 public:
65 void respondToNodeInsertion(Node&); 63 void respondToNodeInsertion(Node&);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 RefPtr<DocumentFragment> m_documentFragment; 109 RefPtr<DocumentFragment> m_documentFragment;
112 bool m_preventNesting; 110 bool m_preventNesting;
113 bool m_movingParagraph; 111 bool m_movingParagraph;
114 EditAction m_editAction; 112 EditAction m_editAction;
115 bool m_shouldMergeEnd; 113 bool m_shouldMergeEnd;
116 }; 114 };
117 115
118 } // namespace blink 116 } // namespace blink
119 117
120 #endif // ReplaceSelectionCommand_h 118 #endif // ReplaceSelectionCommand_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/RemoveNodePreservingChildrenCommand.cpp ('k') | sky/engine/core/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698