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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_constants.cc

Issue 2153943002: Implementing TabManager extensions API Discard Function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reset protection time Created 4 years, 4 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const char kFrameNotFoundError[] = "No frame with id * in tab *."; 78 const char kFrameNotFoundError[] = "No frame with id * in tab *.";
79 const char kNoCrashBrowserError[] = 79 const char kNoCrashBrowserError[] =
80 "I'm sorry. I'm afraid I can't do that."; 80 "I'm sorry. I'm afraid I can't do that.";
81 const char kNoCurrentWindowError[] = "No current window"; 81 const char kNoCurrentWindowError[] = "No current window";
82 const char kNoLastFocusedWindowError[] = "No last-focused window"; 82 const char kNoLastFocusedWindowError[] = "No last-focused window";
83 const char kPerOriginOnlyInAutomaticError[] = "Can only set scope to " 83 const char kPerOriginOnlyInAutomaticError[] = "Can only set scope to "
84 "\"per-origin\" in \"automatic\" mode."; 84 "\"per-origin\" in \"automatic\" mode.";
85 const char kWindowNotFoundError[] = "No window with id: *."; 85 const char kWindowNotFoundError[] = "No window with id: *.";
86 const char kTabIndexNotFoundError[] = "No tab at index: *."; 86 const char kTabIndexNotFoundError[] = "No tab at index: *.";
87 const char kTabNotFoundError[] = "No tab with id: *."; 87 const char kTabNotFoundError[] = "No tab with id: *.";
88 const char kCannotDiscardTab[] = "Cannot discard tab with id: *.";
89 const char kCannotFindTabToDiscard[] = "Cannot find a tab to discard.";
88 const char kTabStripNotEditableError[] = 90 const char kTabStripNotEditableError[] =
89 "Tabs cannot be edited right now (user may be dragging a tab)."; 91 "Tabs cannot be edited right now (user may be dragging a tab).";
90 const char kNoSelectedTabError[] = "No selected tab"; 92 const char kNoSelectedTabError[] = "No selected tab";
91 const char kNoHighlightedTabError[] = "No highlighted tab"; 93 const char kNoHighlightedTabError[] = "No highlighted tab";
92 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled."; 94 const char kIncognitoModeIsDisabled[] = "Incognito mode is disabled.";
93 const char kIncognitoModeIsForced[] = "Incognito mode is forced. " 95 const char kIncognitoModeIsForced[] = "Incognito mode is forced. "
94 "Cannot open normal windows."; 96 "Cannot open normal windows.";
95 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" " 97 const char kURLsNotAllowedInIncognitoError[] = "Cannot open URL \"*\" "
96 "in an incognito window."; 98 "in an incognito window.";
97 const char kInvalidUrlError[] = "Invalid url: \"*\"."; 99 const char kInvalidUrlError[] = "Invalid url: \"*\".";
98 const char kNotImplementedError[] = "This call is not yet implemented"; 100 const char kNotImplementedError[] = "This call is not yet implemented";
99 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only"; 101 const char kSupportedInWindowsOnlyError[] = "Supported in Windows only";
100 const char kInvalidWindowTypeError[] = "Invalid value for type"; 102 const char kInvalidWindowTypeError[] = "Invalid value for type";
101 const char kInvalidWindowStateError[] = "Invalid value for state"; 103 const char kInvalidWindowStateError[] = "Invalid value for state";
102 const char kScreenshotsDisabled[] = "Taking screenshots has been disabled"; 104 const char kScreenshotsDisabled[] = "Taking screenshots has been disabled";
103 const char kCannotUpdateMuteDisabled[] = 105 const char kCannotUpdateMuteDisabled[] =
104 "Failed to update mute state for tab *, --* must be enabled"; 106 "Failed to update mute state for tab *, --* must be enabled";
105 const char kCannotUpdateMuteCaptured[] = 107 const char kCannotUpdateMuteCaptured[] =
106 "Cannot update mute state for tab *, tab has audio or video currently " 108 "Cannot update mute state for tab *, tab has audio or video currently "
107 "being captured"; 109 "being captured";
108 const char kCannotDetermineLanguageOfUnloadedTab[] = 110 const char kCannotDetermineLanguageOfUnloadedTab[] =
109 "Cannot determine language: tab not loaded"; 111 "Cannot determine language: tab not loaded";
110 112
111 } // namespace tabs_constants 113 } // namespace tabs_constants
112 } // namespace extensions 114 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_constants.h ('k') | chrome/browser/extensions/api/tabs/tabs_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698