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

Unified Diff: ui/views/mus/text_input_client_impl.cc

Issue 2611773002: Removes code using mus client lib (Closed)
Patch Set: dont run on linux Created 3 years, 12 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 | « ui/views/mus/text_input_client_impl.h ('k') | ui/views/mus/unittests_aura_manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/text_input_client_impl.cc
diff --git a/ui/views/mus/text_input_client_impl.cc b/ui/views/mus/text_input_client_impl.cc
deleted file mode 100644
index 4193e127e280382d4610a27dd6fec609f109ddb8..0000000000000000000000000000000000000000
--- a/ui/views/mus/text_input_client_impl.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/mus/text_input_client_impl.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "ui/base/ime/text_input_client.h"
-#include "ui/views/mus/input_method_mus.h"
-
-namespace views {
-
-TextInputClientImpl::TextInputClientImpl(ui::TextInputClient* text_input_client)
- : text_input_client_(text_input_client), binding_(this) {}
-
-TextInputClientImpl::~TextInputClientImpl() {}
-
-ui::mojom::TextInputClientPtr TextInputClientImpl::CreateInterfacePtrAndBind() {
- return binding_.CreateInterfacePtrAndBind();
-}
-
-void TextInputClientImpl::SetCompositionText(
- const ui::CompositionText& composition) {
- text_input_client_->SetCompositionText(composition);
-}
-
-void TextInputClientImpl::ConfirmCompositionText() {
- text_input_client_->ConfirmCompositionText();
-}
-
-void TextInputClientImpl::ClearCompositionText() {
- text_input_client_->ClearCompositionText();
-}
-
-void TextInputClientImpl::InsertText(const std::string& text) {
- text_input_client_->InsertText(base::UTF8ToUTF16(text));
-}
-
-void TextInputClientImpl::InsertChar(std::unique_ptr<ui::Event> event) {
- DCHECK(event->IsKeyEvent());
- text_input_client_->InsertChar(*event->AsKeyEvent());
-}
-
-} // namespace views
« no previous file with comments | « ui/views/mus/text_input_client_impl.h ('k') | ui/views/mus/unittests_aura_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698