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

Side by Side Diff: chromeos/ime/ime_keyboard.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 CHROMEOS_IME_IME_KEYBOARD_H_ 5 #ifndef CHROMEOS_IME_IME_KEYBOARD_H_
6 #define CHROMEOS_IME_IME_KEYBOARD_H_ 6 #define CHROMEOS_IME_IME_KEYBOARD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Returns false otherwise. This function is protected: for testability. 104 // Returns false otherwise. This function is protected: for testability.
105 static CHROMEOS_EXPORT bool GetAutoRepeatRateForTesting( 105 static CHROMEOS_EXPORT bool GetAutoRepeatRateForTesting(
106 AutoRepeatRate* out_rate); 106 AutoRepeatRate* out_rate);
107 107
108 // Returns false if |layout_name| contains a bad character. 108 // Returns false if |layout_name| contains a bad character.
109 static CHROMEOS_EXPORT bool CheckLayoutNameForTesting( 109 static CHROMEOS_EXPORT bool CheckLayoutNameForTesting(
110 const std::string& layout_name); 110 const std::string& layout_name);
111 111
112 // Note: At this moment, classes other than InputMethodManager should not 112 // Note: At this moment, classes other than InputMethodManager should not
113 // instantiate the ImeKeyboard class. 113 // instantiate the ImeKeyboard class.
114 static ImeKeyboard* Create(); 114 static CHROMEOS_EXPORT ImeKeyboard* Create();
115 115
116 bool caps_lock_is_enabled_; 116 bool caps_lock_is_enabled_;
117 std::string last_layout_; 117 std::string last_layout_;
118 118
119 private: 119 private:
120 ObserverList<Observer> observers_; 120 ObserverList<Observer> observers_;
121 }; 121 };
122 122
123 } // namespace input_method 123 } // namespace input_method
124 } // namespace chromeos 124 } // namespace chromeos
125 125
126 #endif // CHROMEOS_IME_IME_KEYBOARD_H_ 126 #endif // CHROMEOS_IME_IME_KEYBOARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698