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

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

Issue 1634603003: Hide editing commands from DragController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 IntRect firstRectForRange(const Range*) const; 215 IntRect firstRectForRange(const Range*) const;
216 216
217 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 217 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
218 218
219 bool markedTextMatchesAreHighlighted() const; 219 bool markedTextMatchesAreHighlighted() const;
220 void setMarkedTextMatchesAreHighlighted(bool); 220 void setMarkedTextMatchesAreHighlighted(bool);
221 221
222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>, bool selectReplacement, bool smartReplace, bool matchStyle); 222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>, bool selectReplacement, bool smartReplace, bool matchStyle);
223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace); 223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace);
224 224
225 void replaceSelectionAfterDragging(PassRefPtrWillBeRawPtr<DocumentFragment>, bool smartReplace, bool plainText);
yosin_UTC9 2016/01/27 02:23:03 Please add TODO comment to replace |bool| paramete
Xiaocheng 2016/01/27 03:16:02 Done.
226 void moveSelectionAfterDragging(PassRefPtrWillBeRawPtr<DocumentFragment>, co nst Position&, bool smartInsert, bool smartDelete);
227
225 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul tParagraphSeparator; } 228 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul tParagraphSeparator; }
226 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de faultParagraphSeparator = separator; } 229 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de faultParagraphSeparator = separator; }
227 230
228 class RevealSelectionScope { 231 class RevealSelectionScope {
229 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); 232 WTF_MAKE_NONCOPYABLE(RevealSelectionScope);
230 STACK_ALLOCATED(); 233 STACK_ALLOCATED();
231 public: 234 public:
232 explicit RevealSelectionScope(Editor*); 235 explicit RevealSelectionScope(Editor*);
233 ~RevealSelectionScope(); 236 ~RevealSelectionScope();
234 private: 237 private:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 304
302 inline bool Editor::markedTextMatchesAreHighlighted() const 305 inline bool Editor::markedTextMatchesAreHighlighted() const
303 { 306 {
304 return m_areMarkedTextMatchesHighlighted; 307 return m_areMarkedTextMatchesHighlighted;
305 } 308 }
306 309
307 310
308 } // namespace blink 311 } // namespace blink
309 312
310 #endif // Editor_h 313 #endif // Editor_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | third_party/WebKit/Source/core/editing/Editor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698