summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 13:19:05 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 13:19:05 +0000
commitad2a3ded81c49ee89b44f6b544d21ff617c935bf (patch)
treee83f889f5b17ad81a5e177008df86a0ae9122e4d /chrome/common
parentc0f2f52ebc9d7b41b79ea203a2cfae272c00b937 (diff)
downloadchromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.zip
chromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.tar.gz
chromium_src-ad2a3ded81c49ee89b44f6b544d21ff617c935bf.tar.bz2
Implement about:labs
Tabpose is currently the only lab on mac, tabs-on-left the only lab on windows. Nothing for linux yet. BUG=53399 TEST=Go to about:labs. Should have one feature on windows and osx each, none on linux yet. about:labs should not be visible on the stable channel. Labs that were enabled on the dev channel should not be enabled on the stable channel. about:labs in chromeos should still work (they use a different implementation) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57635 Review URL: http://codereview.chromium.org/3152055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/pref_names.cc3
-rw-r--r--chrome/common/pref_names.h1
-rw-r--r--chrome/common/url_constants.cc12
-rw-r--r--chrome/common/url_constants.h20
4 files changed, 24 insertions, 12 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index cf74af4..2ce27d1 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -389,6 +389,9 @@ const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
// Boolean pref to define the default values for using spellchecker.
const char kEnableSpellCheck[] = "browser.enable_spellchecking";
+// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
+const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
+
// Boolean pref to define the default values for using auto spell correct.
const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h
index 232d0fd..885cb67 100644
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -149,6 +149,7 @@ extern const char kDeleteCookies[];
extern const char kDeletePasswords[];
extern const char kDeleteFormData[];
extern const char kEnableSpellCheck[];
+extern const char kEnabledLabsExperiments[];
extern const char kEnableAutoSpellCorrect[];
extern const char kDeleteTimePeriod[];
extern const char kPrintingPageHeaderLeft[];
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index 0270e48..031a13d 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -41,21 +41,23 @@ const char* kSavableSchemes[] = {
NULL
};
+const char kAboutAboutURL[] = "about:about";
const char kAboutAppCacheInternalsURL[] = "about:appcache-internals";
const char kAboutBlankURL[] = "about:blank";
const char kAboutCacheURL[] = "about:cache";
const char kAboutCrashURL[] = "about:crash";
const char kAboutCreditsURL[] = "about:credits";
+const char kAboutDNSURL[] = "about:dns";
const char kAboutHangURL[] = "about:hang";
+const char kAboutHistogramsURL[] = "about:histograms";
+const char kAboutLabsURL[] = "about:labs";
const char kAboutMemoryURL[] = "about:memory";
const char kAboutNetInternalsURL[] = "about:net-internals";
const char kAboutPluginsURL[] = "about:plugins";
const char kAboutShorthangURL[] = "about:shorthang";
const char kAboutSystemURL[] = "about:system";
const char kAboutTermsURL[] = "about:terms";
-const char kAboutAboutURL[] = "about:about";
-const char kAboutDNSURL[] = "about:dns";
-const char kAboutHistogramsURL[] = "about:histograms";
+const char kAboutVaporwareURL[] = "about:vaporware";
const char kAboutVersionURL[] = "about:version";
// Use an obfuscated URL to make this nondiscoverable, we only want this
@@ -71,10 +73,11 @@ const char kChromeUIDownloadsURL[] = "chrome://downloads/";
const char kChromeUIExtensionsURL[] = "chrome://extensions/";
const char kChromeUIFavIconURL[] = "chrome://favicon/";
const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/";
-const char kChromeUIHistoryURL[] = "chrome://history/";
const char kChromeUIHistory2URL[] = "chrome://history2/";
+const char kChromeUIHistoryURL[] = "chrome://history/";
const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
const char kChromeUIIPCURL[] = "chrome://about/ipc";
+const char kChromeUILabsURL[] = "chrome://labs/";
const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
const char kChromeUINewTabURL[] = "chrome://newtab";
const char kChromeUIOptionsURL[] = "chrome://options/";
@@ -95,6 +98,7 @@ const char kChromeUIHistoryHost[] = "history";
const char kChromeUIHistory2Host[] = "history2";
const char kChromeUIImageBurnerHost[] = "imageburner";
const char kChromeUIInspectorHost[] = "inspector";
+const char kChromeUILabsHost[] = "labs";
const char kChromeUIMediaplayerHost[] = "mediaplayer";
const char kChromeUINetInternalsHost[] = "net-internals";
const char kChromeUINewTabHost[] = "newtab";
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h
index 47b5610..bb726fe 100644
--- a/chrome/common/url_constants.h
+++ b/chrome/common/url_constants.h
@@ -35,22 +35,24 @@ extern const char kStandardSchemeSeparator[];
extern const char* kSavableSchemes[];
// About URLs (including schemes).
+extern const char kAboutAboutURL[];
extern const char kAboutAppCacheInternalsURL[];
extern const char kAboutBlankURL[];
extern const char kAboutBrowserCrash[];
extern const char kAboutCacheURL[];
-extern const char kAboutNetInternalsURL[];
extern const char kAboutCrashURL[];
extern const char kAboutCreditsURL[];
+extern const char kAboutDNSURL[];
extern const char kAboutHangURL[];
+extern const char kAboutHistogramsURL[];
+extern const char kAboutLabsURL[];
extern const char kAboutMemoryURL[];
+extern const char kAboutNetInternalsURL[];
extern const char kAboutPluginsURL[];
extern const char kAboutShorthangURL[];
extern const char kAboutSystemURL[];
extern const char kAboutTermsURL[];
-extern const char kAboutAboutURL[];
-extern const char kAboutDNSURL[];
-extern const char kAboutHistogramsURL[];
+extern const char kAboutVaporwareURL[];
extern const char kAboutVersionURL[];
// chrome: URLs (including schemes). Should be kept in sync with the
@@ -64,10 +66,11 @@ extern const char kChromeUIDownloadsURL[];
extern const char kChromeUIExtensionsURL[];
extern const char kChromeUIFavIconURL[];
extern const char kChromeUIFileBrowseURL[];
-extern const char kChromeUIHistoryURL[];
extern const char kChromeUIHistory2URL[];
+extern const char kChromeUIHistoryURL[];
extern const char kChromeUIImageBurnerURL[];
extern const char kChromeUIIPCURL[];
+extern const char kChromeUILabsURL[];
extern const char kChromeUIMediaplayerURL[];
extern const char kChromeUINewTabURL[];
extern const char kChromeUIOptionsURL[];
@@ -86,10 +89,11 @@ extern const char kChromeUIDownloadsHost[];
extern const char kChromeUIExtensionsHost[];
extern const char kChromeUIFavIconHost[];
extern const char kChromeUIFileBrowseHost[];
-extern const char kChromeUIHistoryHost[];
extern const char kChromeUIHistory2Host[];
+extern const char kChromeUIHistoryHost[];
extern const char kChromeUIImageBurnerHost[];
extern const char kChromeUIInspectorHost[];
+extern const char kChromeUILabsHost[];
extern const char kChromeUIMediaplayerHost[];
extern const char kChromeUINetInternalsHost[];
extern const char kChromeUINewTabHost[];
@@ -98,13 +102,13 @@ extern const char kChromeUIPluginsHost[];
extern const char kChromeUIPrintHost[];
extern const char kChromeUIRegisterPageHost[];
extern const char kChromeUIRemotingHost[];
+extern const char kChromeUIRemotingResourcesHost[];
extern const char kChromeUIResourcesHost[];
extern const char kChromeUIScreenshotPath[];
extern const char kChromeUISlideshowHost[];
extern const char kChromeUISyncResourcesHost[];
-extern const char kChromeUIRemotingResourcesHost[];
-extern const char kChromeUIThumbnailPath[];
extern const char kChromeUIThemePath[];
+extern const char kChromeUIThumbnailPath[];
// AppCache related URL.
extern const char kAppCacheViewInternalsURL[];