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

Side by Side Diff: sky/engine/core/editing/EditCommand.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 const VisibleSelection& startingSelection() const { return m_startingSelecti on; } 47 const VisibleSelection& startingSelection() const { return m_startingSelecti on; }
48 const VisibleSelection& endingSelection() const { return m_endingSelection; } 48 const VisibleSelection& endingSelection() const { return m_endingSelection; }
49 49
50 virtual bool isSimpleEditCommand() const { return false; } 50 virtual bool isSimpleEditCommand() const { return false; }
51 virtual bool isCompositeEditCommand() const { return false; } 51 virtual bool isCompositeEditCommand() const { return false; }
52 bool isTopLevelCommand() const { return !m_parent; } 52 bool isTopLevelCommand() const { return !m_parent; }
53 53
54 virtual void doApply() = 0; 54 virtual void doApply() = 0;
55 55
56 virtual void trace(Visitor*);
57
58 protected: 56 protected:
59 explicit EditCommand(Document&); 57 explicit EditCommand(Document&);
60 EditCommand(Document*, const VisibleSelection&, const VisibleSelection&); 58 EditCommand(Document*, const VisibleSelection&, const VisibleSelection&);
61 59
62 Document& document() const { return *m_document.get(); } 60 Document& document() const { return *m_document.get(); }
63 CompositeEditCommand* parent() const { return m_parent; } 61 CompositeEditCommand* parent() const { return m_parent; }
64 void setStartingSelection(const VisibleSelection&); 62 void setStartingSelection(const VisibleSelection&);
65 void setStartingSelection(const VisiblePosition&); 63 void setStartingSelection(const VisiblePosition&);
66 void setEndingSelection(const VisibleSelection&); 64 void setEndingSelection(const VisibleSelection&);
67 void setEndingSelection(const VisiblePosition&); 65 void setEndingSelection(const VisiblePosition&);
(...skipping 20 matching lines...) Expand all
88 86
89 private: 87 private:
90 virtual bool isSimpleEditCommand() const override final { return true; } 88 virtual bool isSimpleEditCommand() const override final { return true; }
91 }; 89 };
92 90
93 DEFINE_TYPE_CASTS(SimpleEditCommand, EditCommand, command, command->isSimpleEdit Command(), command.isSimpleEditCommand()); 91 DEFINE_TYPE_CASTS(SimpleEditCommand, EditCommand, command, command->isSimpleEdit Command(), command.isSimpleEditCommand());
94 92
95 } // namespace blink 93 } // namespace blink
96 94
97 #endif // EditCommand_h 95 #endif // EditCommand_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/DeleteSelectionCommand.cpp ('k') | sky/engine/core/editing/EditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698