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

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

Issue 400523005: Checks whether background is defined in IME extension manifest. And also move KeyEventDone logic fr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modified per comments. Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual bool SetCandidateWindowVisible(bool visible, 70 virtual bool SetCandidateWindowVisible(bool visible,
71 std::string* error) OVERRIDE; 71 std::string* error) OVERRIDE;
72 virtual bool SetCandidates(int context_id, 72 virtual bool SetCandidates(int context_id,
73 const std::vector<Candidate>& candidates, 73 const std::vector<Candidate>& candidates,
74 std::string* error) OVERRIDE; 74 std::string* error) OVERRIDE;
75 virtual bool SetCursorPosition(int context_id, int candidate_id, 75 virtual bool SetCursorPosition(int context_id, int candidate_id,
76 std::string* error) OVERRIDE; 76 std::string* error) OVERRIDE;
77 virtual bool SetMenuItems(const std::vector<MenuItem>& items) OVERRIDE; 77 virtual bool SetMenuItems(const std::vector<MenuItem>& items) OVERRIDE;
78 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) OVERRIDE; 78 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) OVERRIDE;
79 virtual bool IsActive() const OVERRIDE; 79 virtual bool IsActive() const OVERRIDE;
80 virtual void KeyEventDone(input_method::KeyEventHandle* key_data,
81 bool handled) OVERRIDE;
82 virtual bool DeleteSurroundingText(int context_id, 80 virtual bool DeleteSurroundingText(int context_id,
83 int offset, 81 int offset,
84 size_t number_of_chars, 82 size_t number_of_chars,
85 std::string* error) OVERRIDE; 83 std::string* error) OVERRIDE;
86 84
87 // IMEEngineHandlerInterface overrides. 85 // IMEEngineHandlerInterface overrides.
88 virtual void FocusIn( 86 virtual void FocusIn(
89 const IMEEngineHandlerInterface::InputContext& input_context) OVERRIDE; 87 const IMEEngineHandlerInterface::InputContext& input_context) OVERRIDE;
90 virtual void FocusOut() OVERRIDE; 88 virtual void FocusOut() OVERRIDE;
91 virtual void Enable() OVERRIDE; 89 virtual void Enable() OVERRIDE;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 const ui::KeyEvent* sent_key_event_; 160 const ui::KeyEvent* sent_key_event_;
163 161
164 // The start & end time of using this input method. This is for UMA. 162 // The start & end time of using this input method. This is for UMA.
165 base::Time start_time_; 163 base::Time start_time_;
166 base::Time end_time_; 164 base::Time end_time_;
167 }; 165 };
168 166
169 } // namespace chromeos 167 } // namespace chromeos
170 168
171 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 169 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698