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

Unified Diff: blimp/client/session/blimp_client_session.cc

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: blimp/client/session/blimp_client_session.cc
diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
index 1f05184f6709a1e7b4b678ee4d30469a0cda99d7..2b8bd829da6229db59e20ac73ca64774b4c760ca 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -15,6 +15,7 @@
#include "blimp/client/feature/navigation_feature.h"
#include "blimp/client/feature/render_widget_feature.h"
#include "blimp/client/feature/tab_control_feature.h"
+#include "blimp/client/feature/web_input_feature.h"
#include "blimp/net/blimp_message_processor.h"
#include "blimp/net/blimp_message_thread_pipe.h"
#include "blimp/net/browser_connection_handler.h"
@@ -98,6 +99,7 @@ BlimpClientSession::BlimpClientSession()
: io_thread_("BlimpIOThread"),
tab_control_feature_(new TabControlFeature),
navigation_feature_(new NavigationFeature),
+ web_input_feature_(new WebInputFeature),
render_widget_feature_(new RenderWidgetFeature),
net_components_(new ClientNetworkComponents),
weak_factory_(this) {
@@ -168,6 +170,10 @@ void BlimpClientSession::RegisterFeatures() {
// outgoing BlimpMessageProcessor in the RenderWidgetFeature.
thread_pipe_manager_->RegisterFeature(BlimpMessage::RENDER_WIDGET,
render_widget_feature_.get());
+
+ web_input_feature_->set_outgoing_message_processor(
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::IME,
+ web_input_feature_.get()));
}
TabControlFeature* BlimpClientSession::GetTabControlFeature() const {
@@ -178,6 +184,10 @@ NavigationFeature* BlimpClientSession::GetNavigationFeature() const {
return navigation_feature_.get();
}
+WebInputFeature* BlimpClientSession::GetWebInputFeature() const {
+ return web_input_feature_.get();
+}
+
RenderWidgetFeature* BlimpClientSession::GetRenderWidgetFeature() const {
return render_widget_feature_.get();
}

Powered by Google App Engine
This is Rietveld 408576698