OLD | NEW |
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/extensions/api/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/app_restore_service.h" | 8 #include "apps/app_restore_service.h" |
9 #include "apps/saved_files_service.h" | 9 #include "apps/saved_files_service.h" |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 } | 1056 } |
1057 | 1057 |
1058 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { | 1058 void DeveloperPrivateChoosePathFunction::FileSelectionCanceled() { |
1059 SendResponse(false); | 1059 SendResponse(false); |
1060 Release(); | 1060 Release(); |
1061 } | 1061 } |
1062 | 1062 |
1063 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 1063 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
1064 | 1064 |
1065 bool DeveloperPrivateGetStringsFunction::RunImpl() { | 1065 bool DeveloperPrivateGetStringsFunction::RunImpl() { |
1066 DictionaryValue* dict = new DictionaryValue(); | 1066 base::DictionaryValue* dict = new base::DictionaryValue(); |
1067 SetResult(dict); | 1067 SetResult(dict); |
1068 | 1068 |
1069 webui::SetFontAndTextDirection(dict); | 1069 webui::SetFontAndTextDirection(dict); |
1070 | 1070 |
1071 #define SET_STRING(id, idr) \ | 1071 #define SET_STRING(id, idr) \ |
1072 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 1072 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
1073 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); | 1073 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); |
1074 | 1074 |
1075 SET_STRING("appsDevtoolSearch", IDS_APPS_DEVTOOL_SEARCH); | 1075 SET_STRING("appsDevtoolSearch", IDS_APPS_DEVTOOL_SEARCH); |
1076 SET_STRING("appsDevtoolNoApps", IDS_APPS_DEVTOOL_NO_APPS_INSTALLED); | 1076 SET_STRING("appsDevtoolNoApps", IDS_APPS_DEVTOOL_NO_APPS_INSTALLED); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1146 |
1147 #undef SET_STRING | 1147 #undef SET_STRING |
1148 return true; | 1148 return true; |
1149 } | 1149 } |
1150 | 1150 |
1151 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} | 1151 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
1152 | 1152 |
1153 } // namespace api | 1153 } // namespace api |
1154 | 1154 |
1155 } // namespace extensions | 1155 } // namespace extensions |
OLD | NEW |