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

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

Issue 11558017: Decouple input_method from BrowserThread (and content/). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build failure. Created 8 years 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
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_INPUT_METHOD_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
12
13 namespace base {
14 class SequencedTaskRunner;
15 } // namespace base
11 16
12 namespace chromeos { 17 namespace chromeos {
13 namespace input_method { 18 namespace input_method {
14 19
15 // Provides access to read/persist Input Method-related properties. 20 // Provides access to read/persist Input Method-related properties.
16 class InputMethodDelegate { 21 class InputMethodDelegate {
17 public: 22 public:
18 InputMethodDelegate() {} 23 InputMethodDelegate() {}
19 virtual ~InputMethodDelegate() {} 24 virtual ~InputMethodDelegate() {}
20 25
21 // Retrieves the hardware keyboard layout ID. May return an empty string if 26 // Retrieves the hardware keyboard layout ID. May return an empty string if
22 // the ID is unknown. 27 // the ID is unknown.
23 virtual std::string GetHardwareKeyboardLayout() const = 0; 28 virtual std::string GetHardwareKeyboardLayout() const = 0;
24 // Retrieves the currently active UI locale. 29 // Retrieves the currently active UI locale.
25 virtual std::string GetActiveLocale() const = 0; 30 virtual std::string GetActiveLocale() const = 0;
31 // Retrieves the default task runner. The public input_method API should only
32 // be accessed in the context of this task runner.
33 virtual scoped_refptr<base::SequencedTaskRunner>
34 GetDefaultTaskRunner() const = 0;
35 // Retrieves a task runner that may be used for possibly blocking tasks such
36 // as file IO.
37 virtual scoped_refptr<base::SequencedTaskRunner>
38 GetWorkerTaskRunner() const = 0;
26 39
27 private: 40 private:
28 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate); 41 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate);
29 }; 42 };
30 43
31 } // namespace input_method 44 } // namespace input_method
32 } // namespace chromeos 45 } // namespace chromeos
33 46
34 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698