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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_whitelist.cc

Issue 10544070: Add decoration to the language button to indicate that a third party IME is in use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 8 years, 6 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
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 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h" 5 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" 9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h"
10 #include "chrome/browser/chromeos/input_method/input_methods.h" 10 #include "chrome/browser/chromeos/input_method/input_methods.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 InputMethodDescriptors* InputMethodWhitelist::GetSupportedInputMethods() const { 29 InputMethodDescriptors* InputMethodWhitelist::GetSupportedInputMethods() const {
30 InputMethodDescriptors* input_methods = new InputMethodDescriptors; 30 InputMethodDescriptors* input_methods = new InputMethodDescriptors;
31 input_methods->reserve(arraysize(kInputMethods)); 31 input_methods->reserve(arraysize(kInputMethods));
32 for (size_t i = 0; i < arraysize(kInputMethods); ++i) { 32 for (size_t i = 0; i < arraysize(kInputMethods); ++i) {
33 input_methods->push_back(InputMethodDescriptor( 33 input_methods->push_back(InputMethodDescriptor(
34 kInputMethods[i].input_method_id, 34 kInputMethods[i].input_method_id,
35 "", 35 "",
36 kInputMethods[i].xkb_layout_id, 36 kInputMethods[i].xkb_layout_id,
37 kInputMethods[i].language_code)); 37 kInputMethods[i].language_code,
38 false));
38 } 39 }
39 return input_methods; 40 return input_methods;
40 } 41 }
41 42
42 } // namespace input_method 43 } // namespace input_method
43 } // namespace chromeos 44 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698