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

Unified Diff: content/renderer/render_view_impl.h

Issue 10836053: Add IPCs/methods for additional IME actions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: now calling WebKit implementations of setCompositionFromExistingText and ExtendSelectionAndDelete; … Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 04490b93e27b795c3d976fd89974f0a4f0e75040..f8c4b6d067be41082e6c17a71e970655b75c9631 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -799,12 +799,16 @@ class RenderViewImpl : public RenderWidget,
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState);
+ FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged);
+ FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnReplaceAll);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
+ FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
+ SetEditableSelectionAndComposition);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL);
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
@@ -939,6 +943,7 @@ class RenderViewImpl : public RenderWidget,
void OnDisableAutoResize(const gfx::Size& new_size);
void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths);
void OnExecuteEditCommand(const std::string& name, const std::string& value);
+ void OnExtendSelectionAndDelete(int before, int after);
void OnFileChooserResponse(
const std::vector<ui::SelectedFileInfo>& files);
void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
@@ -966,6 +971,7 @@ class RenderViewImpl : public RenderWidget,
void OnRedo();
void OnReloadFrame();
void OnReplace(const string16& text);
+ void OnReplaceAll(const string16& text);
void OnResetPageEncodingToDefault();
void OnScriptEvalRequest(const string16& frame_xpath,
const string16& jscript,
@@ -977,6 +983,10 @@ class RenderViewImpl : public RenderWidget,
void OnSetActive(bool active);
void OnSetAltErrorPageURL(const GURL& gurl);
void OnSetBackground(const SkBitmap& background);
+ void OnSetCompositionFromExistingText(
+ int start, int end,
+ const std::vector<WebKit::WebCompositionUnderline>& underlines);
+ void OnSetEditableSelectionOffsets(int start, int end);
void OnSetNavigationStartTime(
const base::TimeTicks& browser_navigation_start);
void OnSetWebUIProperty(const std::string& name, const std::string& value);
@@ -1007,6 +1017,7 @@ class RenderViewImpl : public RenderWidget,
void OnUpdateTargetURLAck();
CONTENT_EXPORT void OnUpdateWebPreferences(
const webkit_glue::WebPreferences& prefs);
+ void OnUnselect();
#if defined(OS_MACOSX)
void OnWindowFrameChanged(const gfx::Rect& window_frame,

Powered by Google App Engine
This is Rietveld 408576698