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

Side by Side Diff: webkit/api/public/WebFrame.h

Issue 164565: Remove WebFrame::selectAll and WebFrame::clearSelection in favor of executeCommand (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webframe_impl.h » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 virtual void replaceSelection(const WebString& text) = 0; 296 virtual void replaceSelection(const WebString& text) = 0;
297 297
298 virtual void insertText(const WebString& text) = 0; 298 virtual void insertText(const WebString& text) = 0;
299 299
300 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; 300 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0;
301 virtual void unmarkText() = 0; 301 virtual void unmarkText() = 0;
302 virtual bool hasMarkedText() const = 0; 302 virtual bool hasMarkedText() const = 0;
303 303
304 virtual WebRange markedRange() const = 0; 304 virtual WebRange markedRange() const = 0;
305 305
306 // See EditorCommand.cpp for the list of supported commands. 306 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll,
307 // Unselect, etc. See EditorCommand.cpp for the full list of supported
308 // commands.
307 virtual bool executeCommand(const WebString&) = 0; 309 virtual bool executeCommand(const WebString&) = 0;
308 virtual bool executeCommand(const WebString&, const WebString& value) = 0; 310 virtual bool executeCommand(const WebString&, const WebString& value) = 0;
309 virtual bool isCommandEnabled(const WebString&) const = 0; 311 virtual bool isCommandEnabled(const WebString&) const = 0;
310 312
311 // Spell-checking support. 313 // Spell-checking support.
312 virtual void enableContinuousSpellChecking(bool) = 0; 314 virtual void enableContinuousSpellChecking(bool) = 0;
313 virtual bool isContinuousSpellCheckingEnabled() const = 0; 315 virtual bool isContinuousSpellCheckingEnabled() const = 0;
314 316
315 317
316 // Selection ----------------------------------------------------------- 318 // Selection -----------------------------------------------------------
317 319
318 virtual void selectAll() = 0;
319 virtual void clearSelection() = 0;
320 virtual bool hasSelection() const = 0; 320 virtual bool hasSelection() const = 0;
321 321
322 virtual WebRange selectionRange() const = 0; 322 virtual WebRange selectionRange() const = 0;
323 323
324 virtual WebString selectionAsText() const = 0; 324 virtual WebString selectionAsText() const = 0;
325 virtual WebString selectionAsMarkup() const = 0; 325 virtual WebString selectionAsMarkup() const = 0;
326 326
327 327
328 // Printing ------------------------------------------------------------ 328 // Printing ------------------------------------------------------------
329 329
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // from the DOM. 426 // from the DOM.
427 virtual WebString contentAsMarkup() const = 0; 427 virtual WebString contentAsMarkup() const = 0;
428 428
429 protected: 429 protected:
430 ~WebFrame() { } 430 ~WebFrame() { }
431 }; 431 };
432 432
433 } // namespace WebKit 433 } // namespace WebKit
434 434
435 #endif 435 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698