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

Unified Diff: ui/base/ime/chromeos/mock_ime_input_context_handler.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/base/ime/chromeos/mock_ime_input_context_handler.h ('k') | ui/base/ime/composition_text.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/chromeos/mock_ime_input_context_handler.cc
diff --git a/ui/base/ime/chromeos/mock_ime_input_context_handler.cc b/ui/base/ime/chromeos/mock_ime_input_context_handler.cc
deleted file mode 100644
index 14e5bc0b5fd81dbe01925719d75d5b581c6009cb..0000000000000000000000000000000000000000
--- a/ui/base/ime/chromeos/mock_ime_input_context_handler.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 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/base/ime/chromeos/mock_ime_input_context_handler.h"
-
-#include "chromeos/ime/composition_text.h"
-
-namespace chromeos {
-
-MockIMEInputContextHandler::MockIMEInputContextHandler()
- : commit_text_call_count_(0),
- update_preedit_text_call_count_(0),
- delete_surrounding_text_call_count_(0) {
-}
-
-MockIMEInputContextHandler::~MockIMEInputContextHandler() {
-}
-
-void MockIMEInputContextHandler::CommitText(const std::string& text) {
- ++commit_text_call_count_;
- last_commit_text_ = text;
-}
-
-void MockIMEInputContextHandler::UpdateCompositionText(
- const CompositionText& text,
- uint32 cursor_pos,
- bool visible) {
- ++update_preedit_text_call_count_;
- last_update_composition_arg_.composition_text.CopyFrom(text);
- last_update_composition_arg_.cursor_pos = cursor_pos;
- last_update_composition_arg_.is_visible = visible;
-}
-
-void MockIMEInputContextHandler::DeleteSurroundingText(int32 offset,
- uint32 length) {
- ++delete_surrounding_text_call_count_;
- last_delete_surrounding_text_arg_.offset = offset;
- last_delete_surrounding_text_arg_.length = length;
-}
-
-void MockIMEInputContextHandler::Reset() {
- commit_text_call_count_ = 0;
- update_preedit_text_call_count_ = 0;
- delete_surrounding_text_call_count_ = 0;
- last_commit_text_.clear();
-}
-
-} // namespace chromeos
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_input_context_handler.h ('k') | ui/base/ime/composition_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698