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

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

Issue 1282823002: Add text offset to OnSurroundingTextChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void Enable(const std::string& component_id) override; 73 void Enable(const std::string& component_id) override;
74 void Disable() override; 74 void Disable() override;
75 void PropertyActivate(const std::string& property_name) override; 75 void PropertyActivate(const std::string& property_name) override;
76 void Reset() override; 76 void Reset() override;
77 bool IsInterestedInKeyEvent() const override; 77 bool IsInterestedInKeyEvent() const override;
78 void ProcessKeyEvent(const ui::KeyEvent& key_event, 78 void ProcessKeyEvent(const ui::KeyEvent& key_event,
79 const KeyEventDoneCallback& callback) override; 79 const KeyEventDoneCallback& callback) override;
80 void CandidateClicked(uint32 index) override; 80 void CandidateClicked(uint32 index) override;
81 void SetSurroundingText(const std::string& text, 81 void SetSurroundingText(const std::string& text,
82 uint32 cursor_pos, 82 uint32 cursor_pos,
83 uint32 anchor_pos) override; 83 uint32 anchor_pos,
84 uint32 offset_pos) override;
84 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; 85 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override;
85 void HideInputView() override; 86 void HideInputView() override;
86 87
87 std::string last_activated_property() const { 88 std::string last_activated_property() const {
88 return last_activated_property_; 89 return last_activated_property_;
89 } 90 }
90 91
91 private: 92 private:
92 std::string active_component_id_; 93 std::string active_component_id_;
93 94
94 // The current candidate window property. 95 // The current candidate window property.
95 CandidateWindowProperty candidate_window_property_; 96 CandidateWindowProperty candidate_window_property_;
96 97
97 std::string last_activated_property_; 98 std::string last_activated_property_;
98 }; 99 };
99 100
100 } // namespace chromeos 101 } // namespace chromeos
101 102
102 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698