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

Side by Side Diff: chrome/browser/extensions/extension_tabs_module_constants.cc

Issue 10544023: Moving the tabs_module API into a separate directory in api/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correcting the order of includes. Created 8 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
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 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
6
7 namespace extension_tabs_module_constants {
8
9 const char kActiveKey[] = "active";
10 const char kAllFramesKey[] = "allFrames";
11 const char kAlwaysOnTopKey[] = "alwaysOnTop";
12 const char kBypassCache[] = "bypassCache";
13 const char kCodeKey[] = "code";
14 const char kCurrentWindowKey[] = "currentWindow";
15 const char kDrawAttentionKey[] = "drawAttention";
16 const char kFaviconUrlKey[] = "favIconUrl";
17 const char kFileKey[] = "file";
18 const char kFocusedKey[] = "focused";
19 const char kFormatKey[] = "format";
20 const char kFromIndexKey[] = "fromIndex";
21 const char kHeightKey[] = "height";
22 const char kIdKey[] = "id";
23 const char kIncognitoKey[] = "incognito";
24 const char kIndexKey[] = "index";
25 const char kLastFocusedWindowKey[] = "lastFocusedWindow";
26 const char kLeftKey[] = "left";
27 const char kNewPositionKey[] = "newPosition";
28 const char kNewWindowIdKey[] = "newWindowId";
29 const char kOldPositionKey[] = "oldPosition";
30 const char kOldWindowIdKey[] = "oldWindowId";
31 const char kOpenerTabIdKey[] = "openerTabId";
32 const char kPinnedKey[] = "pinned";
33 const char kQualityKey[] = "quality";
34 const char kHighlightedKey[] = "highlighted";
35 const char kRunAtKey[] = "runAt";
36 const char kSelectedKey[] = "selected";
37 const char kShowStateKey[] = "state";
38 const char kStatusKey[] = "status";
39 const char kTabIdKey[] = "tabId";
40 const char kTabIdsKey[] = "tabIds";
41 const char kTabsKey[] = "tabs";
42 const char kTabUrlKey[] = "tabUrl";
43 const char kTitleKey[] = "title";
44 const char kToIndexKey[] = "toIndex";
45 const char kTopKey[] = "top";
46 const char kUrlKey[] = "url";
47 const char kWindowClosing[] = "isWindowClosing";
48 const char kWidthKey[] = "width";
49 const char kWindowIdKey[] = "windowId";
50 const char kWindowTypeKey[] = "type";
51 const char kWindowTypeLongKey[] = "windowType";
52
53 const char kFormatValueJpeg[] = "jpeg";
54 const char kFormatValuePng[] = "png";
55 const char kMimeTypeJpeg[] = "image/jpeg";
56 const char kMimeTypePng[] = "image/png";
57 const char kShowStateValueNormal[] = "normal";
58 const char kShowStateValueMinimized[] = "minimized";
59 const char kShowStateValueMaximized[] = "maximized";
60 const char kShowStateValueFullscreen[] = "fullscreen";
61 const char kStatusValueComplete[] = "complete";
62 const char kStatusValueLoading[] = "loading";
63
64 // TODO(mpcomplete): should we expose more specific detail, like devtools, app
65 // panel, etc?
66 const char kWindowTypeValueNormal[] = "normal";
67 const char kWindowTypeValuePopup[] = "popup";
68 const char kWindowTypeValuePanel[] = "panel";
69 const char kWindowTypeValueApp[] = "app";
70
71 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be "
72 "moved to and from normal windows.";
73 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved "
74 "between windows in the same profile.";
75 const char kNoCrashBrowserError[] =
76 "I'm sorry. I'm afraid I can't do that.";
77 const char kNoCurrentWindowError[] = "No current window";
78 const char kNoLastFocusedWindowError[] = "No last-focused window";
79 const char kWindowNotFoundError[] = "No window with id: *.";
80 const char kTabIndexNotFoundError[] = "No tab at index: *.";
81 const char kTabNotFoundError[] = "No tab with id: *.";
82 const char kTabStripNotEditableError[] =
83 "Tabs cannot be edited right now (user may be dragging a tab).";
84 const char kNoSelectedTabError[] = "No selected tab";
85 const char kNoHighlightedTabError[] = "No highlighted tab";
86 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled.";
87 const char kIncognitoModeIsForced[] = "Incognito mode is forced. "
88 "Cannot open normal windows.";
89 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" "
90 "in an incognito window.";
91 const char kInvalidUrlError[] = "Invalid url: \"*\".";
92 const char kInternalVisibleTabCaptureError[] =
93 "Internal error while trying to capture visible region of the current tab";
94 const char kNotImplementedError[] = "This call is not yet implemented";
95 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only";
96 const char kInvalidWindowTypeError[] = "Invalid value for type";
97 const char kInvalidWindowStateError[] = "Invalid value for state";
98
99 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified.";
100 const char kMoreThanOneValuesError[] = "Code and file should not be specified "
101 "at the same time in the second argument.";
102 const char kLoadFileError[] = "Failed to load file: \"*\". ";
103 const char kCannotDetermineLanguageOfUnloadedTab[] =
104 "Cannot determine language: tab not loaded";
105
106 } // namespace extension_tabs_module_constants
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module_constants.h ('k') | chrome/browser/extensions/extension_tabs_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698