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

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: 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/client/session/blimp_client_session.h ('k') | blimp/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 226b625cd557d8fa7ae22dac71c2a18dc8b74920..615b3ef2f1601a5e60f37b82a5688fbef0cd2cb2 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -12,6 +12,7 @@
#include "base/thread_task_runner_handle.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "blimp/client/app/blimp_client_switches.h"
+#include "blimp/client/feature/ime_feature.h"
#include "blimp/client/feature/navigation_feature.h"
#include "blimp/client/feature/render_widget_feature.h"
#include "blimp/client/feature/tab_control_feature.h"
@@ -149,6 +150,7 @@ BlimpClientSession::BlimpClientSession()
: io_thread_("BlimpIOThread"),
tab_control_feature_(new TabControlFeature),
navigation_feature_(new NavigationFeature),
+ ime_feature_(new ImeFeature),
render_widget_feature_(new RenderWidgetFeature),
weak_factory_(this) {
net_components_.reset(new ClientNetworkComponents(
@@ -222,6 +224,10 @@ void BlimpClientSession::RegisterFeatures() {
// outgoing BlimpMessageProcessor in the RenderWidgetFeature.
thread_pipe_manager_->RegisterFeature(BlimpMessage::RENDER_WIDGET,
render_widget_feature_.get());
+
+ ime_feature_->set_outgoing_message_processor(
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::IME,
+ ime_feature_.get()));
}
void BlimpClientSession::OnConnected() {}
@@ -236,6 +242,10 @@ NavigationFeature* BlimpClientSession::GetNavigationFeature() const {
return navigation_feature_.get();
}
+ImeFeature* BlimpClientSession::GetImeFeature() const {
+ return ime_feature_.get();
+}
+
RenderWidgetFeature* BlimpClientSession::GetRenderWidgetFeature() const {
return render_widget_feature_.get();
}
« no previous file with comments | « blimp/client/session/blimp_client_session.h ('k') | blimp/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698