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

Unified Diff: chrome/browser/chromeos/input_method/mock_input_method_engine.h

Issue 1590863002: Move the local struct definitions off ui/base/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: chrome/browser/chromeos/input_method/mock_input_method_engine.h
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_engine.h b/chrome/browser/chromeos/input_method/mock_input_method_engine.h
index fef0e560d6121a81c7ef5c77cc88412b67d7f9b4..0ee90731b7108375b99975aa6512dba01a4981d2 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_engine.h
+++ b/chrome/browser/chromeos/input_method/mock_input_method_engine.h
@@ -17,20 +17,12 @@
namespace ui {
class IMEEngineHandlerInterface;
class KeyEvent;
-
-namespace ime {
-struct InputMethodMenuItem;
-}
-}
+} // namespace ui
namespace chromeos {
class CompositionText;
-namespace input_method {
-class CandidateWindow;
-}
-
class MockInputMethodEngine : public ui::IMEEngineHandlerInterface {
public:
MockInputMethodEngine();
@@ -38,31 +30,14 @@ class MockInputMethodEngine : public ui::IMEEngineHandlerInterface {
// IMEEngineHandlerInterface overrides.
const std::string& GetActiveComponentId() const override;
- bool SetComposition(int context_id,
- const char* text,
- int selection_start,
- int selection_end,
- int cursor,
- const std::vector<SegmentInfo>& segments,
- std::string* error) override;
bool ClearComposition(int context_id, std::string* error) override;
bool CommitText(int context_id,
const char* text,
std::string* error) override;
- bool SendKeyEvents(int context_id,
- const std::vector<KeyboardEvent>& events) override;
- const CandidateWindowProperty& GetCandidateWindowProperty() const override;
- void SetCandidateWindowProperty(
- const CandidateWindowProperty& property) override;
bool SetCandidateWindowVisible(bool visible, std::string* error) override;
- bool SetCandidates(int context_id,
- const std::vector<Candidate>& candidates,
- std::string* error) override;
bool SetCursorPosition(int context_id,
int candidate_id,
std::string* error) override;
- bool SetMenuItems(const std::vector<MenuItem>& items) override;
- bool UpdateMenuItems(const std::vector<MenuItem>& items) override;
bool IsActive() const override;
bool DeleteSurroundingText(int context_id,
int offset,
@@ -95,9 +70,6 @@ class MockInputMethodEngine : public ui::IMEEngineHandlerInterface {
private:
std::string active_component_id_;
- // The current candidate window property.
- CandidateWindowProperty candidate_window_property_;
-
std::string last_activated_property_;
};

Powered by Google App Engine
This is Rietveld 408576698