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

Unified Diff: content/public/browser/web_contents.h

Issue 222783004: Move textual replacement to WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 4cbbcec679ac4453ec930b28183b212f5fb6aa31..d84774fdcc36387d2c332fd439e548dec969559f 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -328,10 +328,17 @@ class WebContents : public PageNavigator,
// heap-allocated pointer is owned by the caller.
virtual WebContents* Clone() = 0;
- // Actions on the focused frame ----------------------------------------------
-
+ // Reloads the focused frame.
virtual void ReloadFocusedFrame(bool ignore_cache) = 0;
+ // Editing commands ----------------------------------------------------------
+
+ // Replaces the currently selected word or a word around the cursor.
+ virtual void Replace(const base::string16& word) = 0;
+
+ // Replaces the misspelling in the current selection.
+ virtual void ReplaceMisspelling(const base::string16& word) = 0;
+
// Views and focus -----------------------------------------------------------
// Focuses the first (last if |reverse| is true) element in the page.
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698