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

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

Issue 274059: Small cleanup to extension function registration to avoid scattered definitions. (Closed)
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_page_actions_module_constants.h" 5 #include "chrome/browser/extensions/extension_page_actions_module_constants.h"
6 6
7 namespace extension_page_actions_module_constants { 7 namespace extension_page_actions_module_constants {
8 8
9 const wchar_t kTabIdKey[] = L"tabId"; 9 const wchar_t kTabIdKey[] = L"tabId";
10 const wchar_t kUrlKey[] = L"url"; 10 const wchar_t kUrlKey[] = L"url";
11 const wchar_t kTitleKey[] = L"title"; 11 const wchar_t kTitleKey[] = L"title";
12 const wchar_t kIconIdKey[] = L"iconId"; 12 const wchar_t kIconIdKey[] = L"iconId";
13 const wchar_t kButtonKey[] = L"button"; 13 const wchar_t kButtonKey[] = L"button";
14 14
15 const char kNoExtensionError[] = "No extension with id: *."; 15 const char kNoExtensionError[] = "No extension with id: *.";
16 const char kNoTabError[] = "No tab with id: *."; 16 const char kNoTabError[] = "No tab with id: *.";
17 const char kNoPageActionError[] = "No PageAction with id: *."; 17 const char kNoPageActionError[] = "No PageAction with id: *.";
18 const char kUrlNotActiveError[] = "This url is no longer active: *."; 18 const char kUrlNotActiveError[] = "This url is no longer active: *.";
19 19
20 const char kEnablePageActionFunction[] = "pageActions.enableForTab";
21 const char kDisablePageActionFunction[] = "pageActions.disableForTab";
22
23 } // namespace extension_page_actions_module_constants 20 } // namespace extension_page_actions_module_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698