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

Side by Side Diff: chrome/browser/extensions/extension_input_method_api.cc

Issue 8619007: Revert "Move a bunch of ChromeOS APIs out of chrome/browser/extensions." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/input_method_extension_api.h" 5 #include "chrome/browser/extensions/extension_input_method_api.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
9 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" 9 #include "chrome/browser/chromeos/extensions/input_method_event_router.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 12
13 namespace { 13 namespace {
14 14
15 const char kErrorInputMethodPrivateApi[] = "Input method API is private"; 15 const char kErrorInputMethodPrivateApi[] = "Input method API is private";
(...skipping 18 matching lines...) Expand all
34 return false; 34 return false;
35 } 35 }
36 chromeos::input_method::InputMethodManager* manager = 36 chromeos::input_method::InputMethodManager* manager =
37 chromeos::input_method::InputMethodManager::GetInstance(); 37 chromeos::input_method::InputMethodManager::GetInstance();
38 const std::string input_method = 38 const std::string input_method =
39 router->GetInputMethodForXkb(manager->current_input_method().id()); 39 router->GetInputMethodForXkb(manager->current_input_method().id());
40 result_.reset(Value::CreateStringValue(input_method)); 40 result_.reset(Value::CreateStringValue(input_method));
41 return true; 41 return true;
42 #endif 42 #endif
43 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_input_method_api.h ('k') | chrome/browser/extensions/extension_input_method_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698