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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 339064: Add new user script injection point: document_idle. (Closed)
Patch Set: smaller, cleaner, better Created 11 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
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/common/extensions/extension_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 6
7 namespace extension_manifest_keys { 7 namespace extension_manifest_keys {
8 8
9 const wchar_t* kBackground = L"background_page"; 9 const wchar_t* kBackground = L"background_page";
10 const wchar_t* kBrowserAction = L"browser_action"; 10 const wchar_t* kBrowserAction = L"browser_action";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const wchar_t* kToolstrips = L"toolstrips"; 45 const wchar_t* kToolstrips = L"toolstrips";
46 const wchar_t* kType = L"type"; 46 const wchar_t* kType = L"type";
47 const wchar_t* kVersion = L"version"; 47 const wchar_t* kVersion = L"version";
48 const wchar_t* kUpdateURL = L"update_url"; 48 const wchar_t* kUpdateURL = L"update_url";
49 const wchar_t* kOptionsPage = L"options_page"; 49 const wchar_t* kOptionsPage = L"options_page";
50 } // namespace extension_manifest_keys 50 } // namespace extension_manifest_keys
51 51
52 namespace extension_manifest_values { 52 namespace extension_manifest_values {
53 const char* kRunAtDocumentStart = "document_start"; 53 const char* kRunAtDocumentStart = "document_start";
54 const char* kRunAtDocumentEnd = "document_end"; 54 const char* kRunAtDocumentEnd = "document_end";
55 const char* kRunAtDocumentIdle = "document_idle";
55 const char* kPageActionTypeTab = "tab"; 56 const char* kPageActionTypeTab = "tab";
56 const char* kPageActionTypePermanent = "permanent"; 57 const char* kPageActionTypePermanent = "permanent";
57 } // namespace extension_manifest_values 58 } // namespace extension_manifest_values
58 59
59 // Extension-related error messages. Some of these are simple patterns, where a 60 // Extension-related error messages. Some of these are simple patterns, where a
60 // '*' is replaced at runtime with a specific value. This is used instead of 61 // '*' is replaced at runtime with a specific value. This is used instead of
61 // printf because we want to unit test them and scanf is hard to make 62 // printf because we want to unit test them and scanf is hard to make
62 // cross-platform. 63 // cross-platform.
63 namespace extension_manifest_errors { 64 namespace extension_manifest_errors {
64 const char* kInvalidBrowserAction = 65 const char* kInvalidBrowserAction =
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 "An extension cannot have both a page action and a browser action."; 175 "An extension cannot have both a page action and a browser action.";
175 const char* kThemesCannotContainExtensions = 176 const char* kThemesCannotContainExtensions =
176 "A theme cannot contain extensions code."; 177 "A theme cannot contain extensions code.";
177 const char* kLocalesNoDefaultLocaleSpecified = 178 const char* kLocalesNoDefaultLocaleSpecified =
178 "Localization used, but default_locale wasn't specified in the manifest."; 179 "Localization used, but default_locale wasn't specified in the manifest.";
179 const char* kLocalesNoValidLocaleNamesListed = 180 const char* kLocalesNoValidLocaleNamesListed =
180 "No valid locale name could be found in _locales directory."; 181 "No valid locale name could be found in _locales directory.";
181 const char* kInvalidOptionsPage = 182 const char* kInvalidOptionsPage =
182 "Invalid value for 'options_page'."; 183 "Invalid value for 'options_page'.";
183 } // namespace extension_manifest_errors 184 } // namespace extension_manifest_errors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698