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

Unified Diff: blimp/engine/feature/engine_render_widget_feature.h

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge origin/master Created 4 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 | « blimp/common/proto/ime.proto ('k') | blimp/engine/feature/engine_render_widget_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/feature/engine_render_widget_feature.h
diff --git a/blimp/engine/feature/engine_render_widget_feature.h b/blimp/engine/feature/engine_render_widget_feature.h
index 155ad3e538a95ed1fbe1e10edaa8d232c94f833c..2591b5a4c4d0f81affbbbb2256c64adaa5636b4a 100644
--- a/blimp/engine/feature/engine_render_widget_feature.h
+++ b/blimp/engine/feature/engine_render_widget_feature.h
@@ -16,6 +16,7 @@
#include "base/memory/scoped_ptr.h"
#include "blimp/net/blimp_message_processor.h"
#include "blimp/net/input_message_converter.h"
+#include "ui/base/ime/text_input_client.h"
namespace blink {
class WebGestureEvent;
@@ -63,6 +64,9 @@ class EngineRenderWidgetFeature : public BlimpMessageProcessor {
void set_compositor_message_sender(
scoped_ptr<BlimpMessageProcessor> message_processor);
+ void set_ime_message_sender(
+ scoped_ptr<BlimpMessageProcessor> message_processor);
+
// Notifes the client that a new RenderWidget for a particular WebContents has
// been created. This will trigger the creation of the BlimpCompositor for
// this widget on the client.
@@ -83,6 +87,13 @@ class EngineRenderWidgetFeature : public BlimpMessageProcessor {
void OnRenderWidgetDeleted(const int tab_id,
content::RenderWidgetHost* render_widget_host);
+ // Notifies the client to show/hide IME.
+ void SendShowImeRequest(const int tab_id,
+ content::RenderWidgetHost* render_widget_host,
+ const ui::TextInputClient* client);
+ void SendHideImeRequest(const int tab_id,
+ content::RenderWidgetHost* render_widget_host);
+
// Sends a CompositorMessage for |tab_id| to the client.
void SendCompositorMessage(const int tab_id,
content::RenderWidgetHost* render_widget_host,
@@ -134,6 +145,10 @@ class EngineRenderWidgetFeature : public BlimpMessageProcessor {
content::RenderWidgetHost* GetRenderWidgetHost(const int tab_id,
const int render_widget_id);
+ // Inserts the text entered by the user into the |client|.
+ // The existing text in the box gets replaced by the new text from IME.
+ void SetTextFromIME(ui::TextInputClient* client, std::string text);
+
DelegateMap delegates_;
TabMap tabs_;
@@ -155,6 +170,7 @@ class EngineRenderWidgetFeature : public BlimpMessageProcessor {
scoped_ptr<BlimpMessageProcessor> render_widget_message_sender_;
scoped_ptr<BlimpMessageProcessor> compositor_message_sender_;
scoped_ptr<BlimpMessageProcessor> input_message_sender_;
+ scoped_ptr<BlimpMessageProcessor> ime_message_sender_;
DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature);
};
« no previous file with comments | « blimp/common/proto/ime.proto ('k') | blimp/engine/feature/engine_render_widget_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698