• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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 Tabs API and the Windows API.
6 
7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_
8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_
9 #pragma once
10 
11 namespace extension_tabs_module_constants {
12 
13 // Keys used in serializing tab data & events.
14 extern const char kAllFramesKey[];
15 extern const char kCodeKey[];
16 extern const char kFaviconUrlKey[];
17 extern const char kFileKey[];
18 extern const char kFocusedKey[];
19 extern const char kFormatKey[];
20 extern const char kFromIndexKey[];
21 extern const char kHeightKey[];
22 extern const char kIdKey[];
23 extern const char kIndexKey[];
24 extern const char kLeftKey[];
25 extern const char kNewPositionKey[];
26 extern const char kNewWindowIdKey[];
27 extern const char kOldPositionKey[];
28 extern const char kOldWindowIdKey[];
29 extern const char kPinnedKey[];
30 extern const char kPopulateKey[];
31 extern const char kQualityKey[];
32 extern const char kSelectedKey[];
33 extern const char kStatusKey[];
34 extern const char kTabIdKey[];
35 extern const char kTabsKey[];
36 extern const char kTabUrlKey[];
37 extern const char kTitleKey[];
38 extern const char kToIndexKey[];
39 extern const char kTopKey[];
40 extern const char kUrlKey[];
41 extern const char kWindowClosing[];
42 extern const char kWidthKey[];
43 extern const char kWindowIdKey[];
44 extern const char kIncognitoKey[];
45 extern const char kWindowTypeKey[];
46 
47 // Value consts.
48 extern const char kCanOnlyMoveTabsWithinNormalWindowsError[];
49 extern const char kCanOnlyMoveTabsWithinSameProfileError[];
50 extern const char kFormatValueJpeg[];
51 extern const char kFormatValuePng[];
52 extern const char kMimeTypeJpeg[];
53 extern const char kMimeTypePng[];
54 extern const char kStatusValueComplete[];
55 extern const char kStatusValueLoading[];
56 extern const char kWindowTypeValueNormal[];
57 extern const char kWindowTypeValuePopup[];
58 extern const char kWindowTypeValuePanel[];
59 extern const char kWindowTypeValueApp[];
60 
61 // Error messages.
62 extern const char kNoCrashBrowserError[];
63 extern const char kNoCurrentWindowError[];
64 extern const char kNoLastFocusedWindowError[];
65 extern const char kWindowNotFoundError[];
66 extern const char kTabNotFoundError[];
67 extern const char kTabStripNotEditableError[];
68 extern const char kNoSelectedTabError[];
69 extern const char kIncognitoModeIsDisabled[];
70 extern const char kInvalidUrlError[];
71 extern const char kInternalVisibleTabCaptureError[];
72 extern const char kNotImplementedError[];
73 extern const char kSupportedInWindowsOnlyError[];
74 
75 extern const char kNoCodeOrFileToExecuteError[];
76 extern const char kMoreThanOneValuesError[];
77 extern const char kLoadFileError[];
78 extern const char kCannotDetermineLanguageOfUnloadedTab[];
79 
80 };  // namespace extension_tabs_module_constants
81 
82 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_CONSTANTS_H_
83