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 3 // found in the LICENSE file. 4 5 // Constants used for the WebNavigation API. 6 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_CONSTANTS_H_ 8 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_CONSTANTS_H_ 9 10 namespace extensions { 11 12 namespace web_navigation_api_constants { 13 14 // Keys. 15 extern const char kErrorKey[]; 16 extern const char kFrameIdKey[]; 17 extern const char kParentFrameIdKey[]; 18 extern const char kProcessIdKey[]; 19 extern const char kReplacedTabIdKey[]; 20 extern const char kSourceFrameIdKey[]; 21 extern const char kSourceProcessIdKey[]; 22 extern const char kSourceTabIdKey[]; 23 extern const char kTabIdKey[]; 24 extern const char kTimeStampKey[]; 25 extern const char kTransitionTypeKey[]; 26 extern const char kTransitionQualifiersKey[]; 27 extern const char kUrlKey[]; 28 29 // Events. 30 extern const char kOnBeforeNavigate[]; 31 extern const char kOnCommitted[]; 32 extern const char kOnCompleted[]; 33 extern const char kOnCreatedNavigationTarget[]; 34 extern const char kOnDOMContentLoaded[]; 35 extern const char kOnErrorOccurred[]; 36 extern const char kOnHistoryStateUpdated[]; 37 extern const char kOnReferenceFragmentUpdated[]; 38 extern const char kOnTabReplaced[]; 39 40 } // namespace web_navigation_api_constants 41 42 } // namespace extensions 43 44 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_CONSTANTS_H_ 45