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

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

Issue 10092006: Add Reset() to IBusController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/ibus_controller_base_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IBUS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 21 matching lines...) Expand all
32 static IBusController* Create(); 32 static IBusController* Create();
33 33
34 virtual ~IBusController(); 34 virtual ~IBusController();
35 35
36 virtual void AddObserver(Observer* observer) = 0; 36 virtual void AddObserver(Observer* observer) = 0;
37 virtual void RemoveObserver(Observer* observer) = 0; 37 virtual void RemoveObserver(Observer* observer) = 0;
38 38
39 // Starts the system input method framework. No-op if it's already started. 39 // Starts the system input method framework. No-op if it's already started.
40 virtual bool Start() = 0; 40 virtual bool Start() = 0;
41 41
42 // Resets the system input method framework. A composition text is discarded,
43 // and a candidate window is closed.
44 virtual void Reset() = 0;
45
42 // Stops the system input method framework. 46 // Stops the system input method framework.
43 virtual bool Stop() = 0; 47 virtual bool Stop() = 0;
44 48
45 // Sets a configuration of an input method engine. Returns true if the 49 // Sets a configuration of an input method engine. Returns true if the
46 // configuration is successfully set. For example, when you set 50 // configuration is successfully set. For example, when you set
47 // "engine/Mozc/history_learning_level", |section| should be "engine/Mozc", 51 // "engine/Mozc/history_learning_level", |section| should be "engine/Mozc",
48 // and |config_name| should be "history_learning_level". 52 // and |config_name| should be "history_learning_level".
49 virtual bool SetInputMethodConfig(const std::string& section, 53 virtual bool SetInputMethodConfig(const std::string& section,
50 const std::string& config_name, 54 const std::string& config_name,
51 const InputMethodConfigValue& value) = 0; 55 const InputMethodConfigValue& value) = 0;
(...skipping 27 matching lines...) Expand all
79 #endif 83 #endif
80 }; 84 };
81 85
82 } // namespace input_method 86 } // namespace input_method
83 } // namespace chromeos 87 } // namespace chromeos
84 88
85 // TODO(yusukes,nona): This interface does not depend on IBus actually. 89 // TODO(yusukes,nona): This interface does not depend on IBus actually.
86 // Rename the file if needed. 90 // Rename the file if needed.
87 91
88 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/ibus_controller_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698