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

Side by Side Diff: sky/engine/core/editing/DeleteSelectionCommand.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 25 matching lines...) Expand all
36 public: 36 public:
37 static PassRefPtr<DeleteSelectionCommand> create(Document& document, bool sm artDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElem ents = false, bool sanitizeMarkup = true) 37 static PassRefPtr<DeleteSelectionCommand> create(Document& document, bool sm artDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElem ents = false, bool sanitizeMarkup = true)
38 { 38 {
39 return adoptRef(new DeleteSelectionCommand(document, smartDelete, mergeB locksAfterDelete, expandForSpecialElements, sanitizeMarkup)); 39 return adoptRef(new DeleteSelectionCommand(document, smartDelete, mergeB locksAfterDelete, expandForSpecialElements, sanitizeMarkup));
40 } 40 }
41 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& sel ection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expan dForSpecialElements = false, bool sanitizeMarkup = true) 41 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& sel ection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expan dForSpecialElements = false, bool sanitizeMarkup = true)
42 { 42 {
43 return adoptRef(new DeleteSelectionCommand(selection, smartDelete, merge BlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); 43 return adoptRef(new DeleteSelectionCommand(selection, smartDelete, merge BlocksAfterDelete, expandForSpecialElements, sanitizeMarkup));
44 } 44 }
45 45
46 virtual void trace(Visitor*) override;
47
48 private: 46 private:
49 DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDel ete, bool expandForSpecialElements, bool santizeMarkup); 47 DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDel ete, bool expandForSpecialElements, bool santizeMarkup);
50 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool merge BlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup); 48 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool merge BlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup);
51 49
52 virtual void doApply() override; 50 virtual void doApply() override;
53 virtual EditAction editingAction() const override; 51 virtual EditAction editingAction() const override;
54 52
55 virtual bool preservesTypingStyle() const override; 53 virtual bool preservesTypingStyle() const override;
56 54
57 void initializeStartEnd(Position&, Position&); 55 void initializeStartEnd(Position&, Position&);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 RefPtr<Node> m_endBlock; 87 RefPtr<Node> m_endBlock;
90 RefPtr<EditingStyle> m_deleteIntoBlockquoteStyle; 88 RefPtr<EditingStyle> m_deleteIntoBlockquoteStyle;
91 RefPtr<Element> m_startRoot; 89 RefPtr<Element> m_startRoot;
92 RefPtr<Element> m_endRoot; 90 RefPtr<Element> m_endRoot;
93 RefPtr<Node> m_temporaryPlaceholder; 91 RefPtr<Node> m_temporaryPlaceholder;
94 }; 92 };
95 93
96 } // namespace blink 94 } // namespace blink
97 95
98 #endif // DeleteSelectionCommand_h 96 #endif // DeleteSelectionCommand_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/DeleteFromTextNodeCommand.cpp ('k') | sky/engine/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698