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

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

Issue 2350323003: Merge can/shouldDeleteRange in Editor (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 explicit Editor(LocalFrame&); 268 explicit Editor(LocalFrame&);
269 269
270 LocalFrame& frame() const 270 LocalFrame& frame() const
271 { 271 {
272 DCHECK(m_frame); 272 DCHECK(m_frame);
273 return *m_frame; 273 return *m_frame;
274 } 274 }
275 275
276 bool canDeleteRange(const EphemeralRange&) const; 276 bool canDeleteRange(const EphemeralRange&) const;
277 bool shouldDeleteRange(const EphemeralRange&) const;
278 277
279 bool tryDHTMLCopy(); 278 bool tryDHTMLCopy();
280 bool tryDHTMLCut(); 279 bool tryDHTMLCut();
281 bool tryDHTMLPaste(PasteMode); 280 bool tryDHTMLPaste(PasteMode);
282 281
283 bool canSmartReplaceWithPasteboard(Pasteboard*); 282 bool canSmartReplaceWithPasteboard(Pasteboard*);
284 void pasteAsPlainTextWithPasteboard(Pasteboard*); 283 void pasteAsPlainTextWithPasteboard(Pasteboard*);
285 void pasteWithPasteboard(Pasteboard*); 284 void pasteWithPasteboard(Pasteboard*);
286 void writeSelectionToPasteboard(); 285 void writeSelectionToPasteboard();
287 bool dispatchCPPEvent(const AtomicString&, DataTransferAccessPolicy, PasteMo de = AllMimeTypes); 286 bool dispatchCPPEvent(const AtomicString&, DataTransferAccessPolicy, PasteMo de = AllMimeTypes);
(...skipping 26 matching lines...) Expand all
314 313
315 inline bool Editor::markedTextMatchesAreHighlighted() const 314 inline bool Editor::markedTextMatchesAreHighlighted() const
316 { 315 {
317 return m_areMarkedTextMatchesHighlighted; 316 return m_areMarkedTextMatchesHighlighted;
318 } 317 }
319 318
320 319
321 } // namespace blink 320 } // namespace blink
322 321
323 #endif // Editor_h 322 #endif // Editor_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698