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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_engine.h

Issue 2597413002: Makes the InputMethodEngine can be switched per profile when the top-level browser window is switch… (Closed)
Patch Set: . 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::string* error) override; 43 std::string* error) override;
44 44
45 // IMEEngineHandlerInterface overrides. 45 // IMEEngineHandlerInterface overrides.
46 void FocusIn( 46 void FocusIn(
47 const IMEEngineHandlerInterface::InputContext& input_context) override; 47 const IMEEngineHandlerInterface::InputContext& input_context) override;
48 void FocusOut() override; 48 void FocusOut() override;
49 void Enable(const std::string& component_id) override; 49 void Enable(const std::string& component_id) override;
50 void Disable() override; 50 void Disable() override;
51 void PropertyActivate(const std::string& property_name) override; 51 void PropertyActivate(const std::string& property_name) override;
52 void Reset() override; 52 void Reset() override;
53 void MaybeSwitchEngine() override;
53 bool IsInterestedInKeyEvent() const override; 54 bool IsInterestedInKeyEvent() const override;
54 void ProcessKeyEvent(const ui::KeyEvent& key_event, 55 void ProcessKeyEvent(const ui::KeyEvent& key_event,
55 KeyEventDoneCallback& callback) override; 56 KeyEventDoneCallback& callback) override;
56 void CandidateClicked(uint32_t index) override; 57 void CandidateClicked(uint32_t index) override;
57 void SetSurroundingText(const std::string& text, 58 void SetSurroundingText(const std::string& text,
58 uint32_t cursor_pos, 59 uint32_t cursor_pos,
59 uint32_t anchor_pos, 60 uint32_t anchor_pos,
60 uint32_t offset_pos) override; 61 uint32_t offset_pos) override;
61 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; 62 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override;
62 void HideInputView() override; 63 void HideInputView() override;
63 64
64 std::string last_activated_property() const { 65 std::string last_activated_property() const {
65 return last_activated_property_; 66 return last_activated_property_;
66 } 67 }
67 68
68 private: 69 private:
69 std::string active_component_id_; 70 std::string active_component_id_;
70 71
71 std::string last_activated_property_; 72 std::string last_activated_property_;
72 }; 73 };
73 74
74 } // namespace chromeos 75 } // namespace chromeos
75 76
76 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698