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

Unified Diff: chrome/browser/extensions/extension_web_navigation_api_constants.cc

Issue 3131014: Add constant values for the webNavigation API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_web_navigation_api_constants.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_web_navigation_api_constants.cc
===================================================================
--- chrome/browser/extensions/extension_web_navigation_api_constants.cc (revision 0)
+++ chrome/browser/extensions/extension_web_navigation_api_constants.cc (revision 0)
@@ -0,0 +1,28 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/extension_web_navigation_api_constants.h"
+
+namespace extension_web_navigation_api_constants {
+
+const wchar_t kErrorKey[] = L"error";
+const wchar_t kFrameIdKey[] = L"frameId";
+const wchar_t kRequestIdKey[] = L"requestId";
+const wchar_t kSourceTabIdKey[] = L"sourceTabId";
+const wchar_t kSourceUrlKey[] = L"sourceUrl";
+const wchar_t kTabIdKey[] = L"tabId";
+const wchar_t kTargetUrlKey[] = L"targetUrl";
+const wchar_t kTimeStampKey[] = L"timeStamp";
+const wchar_t kTransitionTypeKey[] = L"transitionType";
+const wchar_t kUrlKey[] = L"url";
+
+const char kOnBeforeNavigate[] = "experimental.webNavigation.onBeforeNavigate";
+const char kOnBeforeRetarget[] = "experimental.webNavigation.onBeforeRetarget";
+const char kOnCommitted[] = "experimental.webNavigation.onCommitted";
+const char kOnCompleted[] = "experimental.webNavigation.onCompleted";
+const char kOnDOMContentLoaded[] =
+ "experimental.webNavigation.onDOMContentLoaded";
+const char kOnErrorOccurred[] = "experimental.webNavigation.onErrorOccurred";
+
+} // namespace extension_web_navigation_api_constants
« no previous file with comments | « chrome/browser/extensions/extension_web_navigation_api_constants.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698