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

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.h

Issue 2399663003: Reflow comments in //third_party/WebKit/Source/core/editing (Closed)
Patch Set: Created 4 years, 2 months 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Returns 0 if this Command is not supported. 160 // Returns 0 if this Command is not supported.
161 int idForHistogram() const; 161 int idForHistogram() const;
162 162
163 private: 163 private:
164 LocalFrame& frame() const { 164 LocalFrame& frame() const {
165 DCHECK(m_frame); 165 DCHECK(m_frame);
166 return *m_frame; 166 return *m_frame;
167 } 167 }
168 168
169 // Returns target ranges for the command, currently only supports delete rel ated commands. 169 // Returns target ranges for the command, currently only supports delete
170 // Used by InputEvent. 170 // related commands. Used by InputEvent.
171 RangeVector* getTargetRanges() const; 171 RangeVector* getTargetRanges() const;
172 172
173 const EditorInternalCommand* m_command; 173 const EditorInternalCommand* m_command;
174 EditorCommandSource m_source; 174 EditorCommandSource m_source;
175 Member<LocalFrame> m_frame; 175 Member<LocalFrame> m_frame;
176 }; 176 };
177 Command createCommand( 177 Command createCommand(
178 const String& 178 const String&
179 commandName); // Command source is CommandFromMenuOrKeyBinding. 179 commandName); // Command source is CommandFromMenuOrKeyBinding.
180 Command createCommand(const String& commandName, EditorCommandSource); 180 Command createCommand(const String& commandName, EditorCommandSource);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 bool matchStyle); 258 bool matchStyle);
259 void replaceSelectionWithText(const String&, 259 void replaceSelectionWithText(const String&,
260 bool selectReplacement, 260 bool selectReplacement,
261 bool smartReplace); 261 bool smartReplace);
262 262
263 // TODO(xiaochengh): Replace |bool| parameters by |enum|. 263 // TODO(xiaochengh): Replace |bool| parameters by |enum|.
264 void replaceSelectionAfterDragging(DocumentFragment*, 264 void replaceSelectionAfterDragging(DocumentFragment*,
265 InsertMode, 265 InsertMode,
266 DragSourceType); 266 DragSourceType);
267 267
268 // Return false if frame was destroyed by event handler, should stop executing remaining actions. 268 // Return false if frame was destroyed by event handler, should stop executing
269 // remaining actions.
269 bool deleteSelectionAfterDraggingWithEvents( 270 bool deleteSelectionAfterDraggingWithEvents(
270 Element* dragSource, 271 Element* dragSource,
271 DeleteMode, 272 DeleteMode,
272 const Position& referenceMovePosition); 273 const Position& referenceMovePosition);
273 bool replaceSelectionAfterDraggingWithEvents(Element* dropTarget, 274 bool replaceSelectionAfterDraggingWithEvents(Element* dropTarget,
274 DragData*, 275 DragData*,
275 DocumentFragment*, 276 DocumentFragment*,
276 Range* dropCaretRange, 277 Range* dropCaretRange,
277 InsertMode, 278 InsertMode,
278 DragSourceType); 279 DragSourceType);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 m_mark = selection; 362 m_mark = selection;
362 } 363 }
363 364
364 inline bool Editor::markedTextMatchesAreHighlighted() const { 365 inline bool Editor::markedTextMatchesAreHighlighted() const {
365 return m_areMarkedTextMatchesHighlighted; 366 return m_areMarkedTextMatchesHighlighted;
366 } 367 }
367 368
368 } // namespace blink 369 } // namespace blink
369 370
370 #endif // Editor_h 371 #endif // Editor_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp ('k') | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698