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 kCannotZoomDisabledTabError[] = "Cannot zoom a tab in disabled " |
| 74 "mode."; |
71 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " | 75 const char kCanOnlyMoveTabsWithinNormalWindowsError[] = "Tabs can only be " |
72 "moved to and from normal windows."; | 76 "moved to and from normal windows."; |
73 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved " | 77 const char kCanOnlyMoveTabsWithinSameProfileError[] = "Tabs can only be moved " |
74 "between windows in the same profile."; | 78 "between windows in the same profile."; |
75 const char kNoCrashBrowserError[] = | 79 const char kNoCrashBrowserError[] = |
76 "I'm sorry. I'm afraid I can't do that."; | 80 "I'm sorry. I'm afraid I can't do that."; |
77 const char kNoCurrentWindowError[] = "No current window"; | 81 const char kNoCurrentWindowError[] = "No current window"; |
78 const char kNoLastFocusedWindowError[] = "No last-focused window"; | 82 const char kNoLastFocusedWindowError[] = "No last-focused window"; |
| 83 const char kPerOriginOnlyInAutomaticError[] = "Can only set scope to " |
| 84 "\"per-origin\" in \"automatic\" mode."; |
79 const char kWindowNotFoundError[] = "No window with id: *."; | 85 const char kWindowNotFoundError[] = "No window with id: *."; |
80 const char kTabIndexNotFoundError[] = "No tab at index: *."; | 86 const char kTabIndexNotFoundError[] = "No tab at index: *."; |
81 const char kTabNotFoundError[] = "No tab with id: *."; | 87 const char kTabNotFoundError[] = "No tab with id: *."; |
82 const char kTabStripNotEditableError[] = | 88 const char kTabStripNotEditableError[] = |
83 "Tabs cannot be edited right now (user may be dragging a tab)."; | 89 "Tabs cannot be edited right now (user may be dragging a tab)."; |
84 const char kNoSelectedTabError[] = "No selected tab"; | 90 const char kNoSelectedTabError[] = "No selected tab"; |
85 const char kNoHighlightedTabError[] = "No highlighted tab"; | 91 const char kNoHighlightedTabError[] = "No highlighted tab"; |
86 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; | 92 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; |
87 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " | 93 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " |
88 "Cannot open normal windows."; | 94 "Cannot open normal windows."; |
(...skipping 10 matching lines...) Expand all Loading... |
99 | 105 |
100 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; | 106 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified."; |
101 const char kMoreThanOneValuesError[] = "Code and file should not be specified " | 107 const char kMoreThanOneValuesError[] = "Code and file should not be specified " |
102 "at the same time in the second argument."; | 108 "at the same time in the second argument."; |
103 const char kLoadFileError[] = "Failed to load file: \"*\". "; | 109 const char kLoadFileError[] = "Failed to load file: \"*\". "; |
104 const char kCannotDetermineLanguageOfUnloadedTab[] = | 110 const char kCannotDetermineLanguageOfUnloadedTab[] = |
105 "Cannot determine language: tab not loaded"; | 111 "Cannot determine language: tab not loaded"; |
106 | 112 |
107 } // namespace tabs_constants | 113 } // namespace tabs_constants |
108 } // namespace extensions | 114 } // namespace extensions |
OLD | NEW |