OLD | NEW |
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/extensions/extension_input_ui_api.h" | 5 #include "chrome/browser/extensions/extension_input_ui_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chromeos/cros/cros_library.h" | 14 #include "chrome/browser/chromeos/cros/cros_library.h" |
15 #include "chrome/browser/extensions/extension_event_router.h" | 15 #include "chrome/browser/extensions/extension_event_router.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "third_party/cros/chromeos_cros_api.h" | 17 #include "third_party/cros/chromeos_cros_api.h" |
18 | 18 |
19 namespace events { | 19 namespace events { |
20 | 20 |
21 const char kOnUpdateAuxiliaryText[] = | 21 const char kOnUpdateAuxiliaryText[] = |
22 "experimental.inputUI.onUpdateAuxiliaryText"; | 22 "experimental.input.ui.onUpdateAuxiliaryText"; |
23 const char kOnUpdateLookupTable[] = "experimental.inputUI.onUpdateLookupTable"; | 23 const char kOnUpdateLookupTable[] = "experimental.input.ui.onUpdateLookupTable"; |
24 const char kOnSetCursorLocation[] = "experimental.inputUI.onSetCursorLocation"; | 24 const char kOnSetCursorLocation[] = "experimental.input.ui.onSetCursorLocation"; |
25 | 25 |
26 } // namespace events | 26 } // namespace events |
27 | 27 |
28 ExtensionInputUiEventRouter* | 28 ExtensionInputUiEventRouter* |
29 ExtensionInputUiEventRouter::GetInstance() { | 29 ExtensionInputUiEventRouter::GetInstance() { |
30 return Singleton<ExtensionInputUiEventRouter>::get(); | 30 return Singleton<ExtensionInputUiEventRouter>::get(); |
31 } | 31 } |
32 | 32 |
33 ExtensionInputUiEventRouter::ExtensionInputUiEventRouter() | 33 ExtensionInputUiEventRouter::ExtensionInputUiEventRouter() |
34 : profile_(NULL), | 34 : profile_(NULL), |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 ExtensionInputUiEventRouter::GetInstance()->PageUp( | 230 ExtensionInputUiEventRouter::GetInstance()->PageUp( |
231 profile(), extension_id()); | 231 profile(), extension_id()); |
232 return true; | 232 return true; |
233 } | 233 } |
234 | 234 |
235 bool PageDownInputUiFunction::RunImpl() { | 235 bool PageDownInputUiFunction::RunImpl() { |
236 ExtensionInputUiEventRouter::GetInstance()->PageDown( | 236 ExtensionInputUiEventRouter::GetInstance()->PageDown( |
237 profile(), extension_id()); | 237 profile(), extension_id()); |
238 return true; | 238 return true; |
239 } | 239 } |
OLD | NEW |