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

Side by Side Diff: sky/engine/core/editing/VisibleSelection.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) 2004 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004 Apple Computer, 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi ll be invoked when base, extent, start 116 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi ll be invoked when base, extent, start
117 // or end is moved to a different position. 117 // or end is moved to a different position.
118 // 118 //
119 // Objects implementing |ChangeObserver| interface must outlive the VisibleS election object. 119 // Objects implementing |ChangeObserver| interface must outlive the VisibleS election object.
120 class ChangeObserver { 120 class ChangeObserver {
121 WTF_MAKE_NONCOPYABLE(ChangeObserver); 121 WTF_MAKE_NONCOPYABLE(ChangeObserver);
122 public: 122 public:
123 ChangeObserver(); 123 ChangeObserver();
124 virtual ~ChangeObserver(); 124 virtual ~ChangeObserver();
125 virtual void didChangeVisibleSelection() = 0; 125 virtual void didChangeVisibleSelection() = 0;
126 virtual void trace(Visitor*) { }
127 }; 126 };
128 127
129 void setChangeObserver(ChangeObserver&); 128 void setChangeObserver(ChangeObserver&);
130 void clearChangeObserver(); 129 void clearChangeObserver();
131 void didChange(); // Fire the change observer, if any. 130 void didChange(); // Fire the change observer, if any.
132 131
133 void trace(Visitor*);
134
135 void validatePositionsIfNeeded(); 132 void validatePositionsIfNeeded();
136 133
137 #ifndef NDEBUG 134 #ifndef NDEBUG
138 void debugPosition() const; 135 void debugPosition() const;
139 void formatForDebugger(char* buffer, unsigned length) const; 136 void formatForDebugger(char* buffer, unsigned length) const;
140 void showTreeForThis() const; 137 void showTreeForThis() const;
141 #endif 138 #endif
142 139
143 private: 140 private:
144 void validate(TextGranularity = CharacterGranularity); 141 void validate(TextGranularity = CharacterGranularity);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 182
186 } // namespace blink 183 } // namespace blink
187 184
188 #ifndef NDEBUG 185 #ifndef NDEBUG
189 // Outside the WebCore namespace for ease of invocation from gdb. 186 // Outside the WebCore namespace for ease of invocation from gdb.
190 void showTree(const blink::VisibleSelection&); 187 void showTree(const blink::VisibleSelection&);
191 void showTree(const blink::VisibleSelection*); 188 void showTree(const blink::VisibleSelection*);
192 #endif 189 #endif
193 190
194 #endif // VisibleSelection_h 191 #endif // VisibleSelection_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/VisiblePosition.cpp ('k') | sky/engine/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698