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