OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 namespace tabs_constants { | 8 namespace tabs_constants { |
9 | 9 |
10 const char kActiveKey[] = "active"; | 10 const char kActiveKey[] = "active"; |
(...skipping 30 matching lines...) Expand all Loading... | |
41 const char kTabsKey[] = "tabs"; | 41 const char kTabsKey[] = "tabs"; |
42 const char kTitleKey[] = "title"; | 42 const char kTitleKey[] = "title"; |
43 const char kToIndexKey[] = "toIndex"; | 43 const char kToIndexKey[] = "toIndex"; |
44 const char kTopKey[] = "top"; | 44 const char kTopKey[] = "top"; |
45 const char kUrlKey[] = "url"; | 45 const char kUrlKey[] = "url"; |
46 const char kWindowClosing[] = "isWindowClosing"; | 46 const char kWindowClosing[] = "isWindowClosing"; |
47 const char kWidthKey[] = "width"; | 47 const char kWidthKey[] = "width"; |
48 const char kWindowIdKey[] = "windowId"; | 48 const char kWindowIdKey[] = "windowId"; |
49 const char kWindowTypeKey[] = "type"; | 49 const char kWindowTypeKey[] = "type"; |
50 const char kWindowTypeLongKey[] = "windowType"; | 50 const char kWindowTypeLongKey[] = "windowType"; |
51 const char kZoomSettingsMode[] = "mode"; | |
52 const char kZoomSettingsScope[] = "scope"; | |
51 | 53 |
52 const char kFormatValueJpeg[] = "jpeg"; | 54 const char kFormatValueJpeg[] = "jpeg"; |
53 const char kFormatValuePng[] = "png"; | 55 const char kFormatValuePng[] = "png"; |
54 const char kMimeTypeJpeg[] = "image/jpeg"; | 56 const char kMimeTypeJpeg[] = "image/jpeg"; |
55 const char kMimeTypePng[] = "image/png"; | 57 const char kMimeTypePng[] = "image/png"; |
56 const char kShowStateValueNormal[] = "normal"; | 58 const char kShowStateValueNormal[] = "normal"; |
57 const char kShowStateValueMinimized[] = "minimized"; | 59 const char kShowStateValueMinimized[] = "minimized"; |
58 const char kShowStateValueMaximized[] = "maximized"; | 60 const char kShowStateValueMaximized[] = "maximized"; |
59 const char kShowStateValueFullscreen[] = "fullscreen"; | 61 const char kShowStateValueFullscreen[] = "fullscreen"; |
60 const char kStatusValueComplete[] = "complete"; | 62 const char kStatusValueComplete[] = "complete"; |
61 const char kStatusValueLoading[] = "loading"; | 63 const char kStatusValueLoading[] = "loading"; |
62 | 64 |
63 // TODO(mpcomplete): should we expose more specific detail, like devtools, app | 65 // TODO(mpcomplete): should we expose more specific detail, like devtools, app |
64 // panel, etc? | 66 // panel, etc? |
65 const char kWindowTypeValueNormal[] = "normal"; | 67 const char kWindowTypeValueNormal[] = "normal"; |
66 const char kWindowTypeValuePopup[] = "popup"; | 68 const char kWindowTypeValuePopup[] = "popup"; |
67 const char kWindowTypeValuePanel[] = "panel"; | 69 const char kWindowTypeValuePanel[] = "panel"; |
68 const char kWindowTypeValueDetachedPanel[] = "detached_panel"; | 70 const char kWindowTypeValueDetachedPanel[] = "detached_panel"; |
69 const char kWindowTypeValueApp[] = "app"; | 71 const char kWindowTypeValueApp[] = "app"; |
70 | 72 |
73 const char kCannotChangeChromePageZoomSettingsError[] = "Cannot change zoom " | |
74 "settings of \"chrome://\" pages."; | |
75 const char kCannotZoomChromePagesError[] = "Cannot zoom \"chrome://\" pages."; | |
76 const char kCannotZoomDisabledTabError[] = "Cannot zoom a tab in disabled " | |
77 "mode."; | |
71 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " | 78 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " |
72 "moved to and from normal windows."; | 79 "moved to and from normal windows."; |
73 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved " | 80 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved " |
74 "between windows in the same profile."; | 81 "between windows in the same profile."; |
75 const char kNoCrashBrowserError[] = | 82 const char kNoCrashBrowserError[] = |
76 "I'm sorry. I'm afraid I can't do that."; | 83 "I'm sorry. I'm afraid I can't do that."; |
77 const char kNoCurrentWindowError[] = "No current window"; | 84 const char kNoCurrentWindowError[] = "No current window"; |
78 const char kNoLastFocusedWindowError[] = "No last-focused window"; | 85 const char kNoLastFocusedWindowError[] = "No last-focused window"; |
86 const char kPerOriginOnlyInAutomaticError[] = "Can only set scope to " | |
87 "'per-origin' in 'automatic' mode."; | |
Devlin
2014/06/16 19:04:47
nit: Please be consistent in use of single or doub
wjmaclean
2014/06/18 19:03:52
Done.
| |
79 const char kWindowNotFoundError[] = "No window with id: *."; | 88 const char kWindowNotFoundError[] = "No window with id: *."; |
80 const char kTabIndexNotFoundError[] = "No tab at index: *."; | 89 const char kTabIndexNotFoundError[] = "No tab at index: *."; |
81 const char kTabNotFoundError[] = "No tab with id: *."; | 90 const char kTabNotFoundError[] = "No tab with id: *."; |
82 const char kTabStripNotEditableError[] = | 91 const char kTabStripNotEditableError[] = |
83 "Tabs cannot be edited right now (user may be dragging a tab)."; | 92 "Tabs cannot be edited right now (user may be dragging a tab)."; |
84 const char kNoSelectedTabError[] = "No selected tab"; | 93 const char kNoSelectedTabError[] = "No selected tab"; |
85 const char kNoHighlightedTabError[] = "No highlighted tab"; | 94 const char kNoHighlightedTabError[] = "No highlighted tab"; |
86 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; | 95 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; |
87 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " | 96 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " |
88 "Cannot open normal windows."; | 97 "Cannot open normal windows."; |
(...skipping 10 matching lines...) Expand all Loading... | |
99 | 108 |
100 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; | 109 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; |
101 const char kMoreThanOneValuesError[] = "Code and file should not be specified " | 110 const char kMoreThanOneValuesError[] = "Code and file should not be specified " |
102 "at the same time in the second argument."; | 111 "at the same time in the second argument."; |
103 const char kLoadFileError[] = "Failed to load file: \"*\". "; | 112 const char kLoadFileError[] = "Failed to load file: \"*\". "; |
104 const char kCannotDetermineLanguageOfUnloadedTab[] = | 113 const char kCannotDetermineLanguageOfUnloadedTab[] = |
105 "Cannot determine language: tab not loaded"; | 114 "Cannot determine language: tab not loaded"; |
106 | 115 |
107 } // namespace tabs_constants | 116 } // namespace tabs_constants |
108 } // namespace extensions | 117 } // namespace extensions |
OLD | NEW |