| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/extensions/api/input/input.h" | 5 #include "chrome/browser/extensions/api/input/input.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 base::DictionaryValue* results = new base::DictionaryValue(); | 147 base::DictionaryValue* results = new base::DictionaryValue(); |
| 148 results->SetString("layout", keyboard::GetKeyboardLayout()); | 148 results->SetString("layout", keyboard::GetKeyboardLayout()); |
| 149 results->SetBoolean("a11ymode", keyboard::GetAccessibilityKeyboardEnabled()); | 149 results->SetBoolean("a11ymode", keyboard::GetAccessibilityKeyboardEnabled()); |
| 150 SetResult(results); | 150 SetResult(results); |
| 151 return true; | 151 return true; |
| 152 #endif | 152 #endif |
| 153 error_ = kNotYetImplementedError; | 153 error_ = kNotYetImplementedError; |
| 154 return false; | 154 return false; |
| 155 } | 155 } |
| 156 | 156 |
| 157 InputAPI::InputAPI(Profile* profile) { | 157 InputAPI::InputAPI(content::BrowserContext* context) {} |
| 158 } | |
| 159 | 158 |
| 160 InputAPI::~InputAPI() { | 159 InputAPI::~InputAPI() { |
| 161 } | 160 } |
| 162 | 161 |
| 163 static base::LazyInstance<ProfileKeyedAPIFactory<InputAPI> > | 162 static base::LazyInstance<ProfileKeyedAPIFactory<InputAPI> > |
| 164 g_factory = LAZY_INSTANCE_INITIALIZER; | 163 g_factory = LAZY_INSTANCE_INITIALIZER; |
| 165 | 164 |
| 166 // static | 165 // static |
| 167 ProfileKeyedAPIFactory<InputAPI>* InputAPI::GetFactoryInstance() { | 166 ProfileKeyedAPIFactory<InputAPI>* InputAPI::GetFactoryInstance() { |
| 168 return g_factory.Pointer(); | 167 return g_factory.Pointer(); |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace extensions | 170 } // namespace extensions |
| OLD | NEW |