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

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

Issue 855753004: Remove remainder of Athena related code from Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_USE_ATHENA5
Patch Set: Created 5 years, 11 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 2014 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/api/tabs/tabs_api.h"
6
7 #include <string>
8 #include <vector>
9
10 #include "base/logging.h"
11 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
12
13 using content::WebContents;
14
15 namespace extensions {
16
17 namespace windows = api::windows;
18 namespace keys = tabs_constants;
19 namespace tabs = api::tabs;
20
21 void ZoomModeToZoomSettings(ZoomController::ZoomMode zoom_mode,
22 api::tabs::ZoomSettings* zoom_settings) {
23 DCHECK(zoom_settings);
24 NOTIMPLEMENTED();
25 }
26
27 // Windows ---------------------------------------------------------------------
28
29 bool WindowsGetFunction::RunSync() {
30 scoped_ptr<windows::Get::Params> params(windows::Get::Params::Create(*args_));
31 EXTENSION_FUNCTION_VALIDATE(params.get());
32 NOTIMPLEMENTED();
33 return false;
34 }
35
36 bool WindowsGetCurrentFunction::RunSync() {
37 scoped_ptr<windows::GetCurrent::Params> params(
38 windows::GetCurrent::Params::Create(*args_));
39 EXTENSION_FUNCTION_VALIDATE(params.get());
40 NOTIMPLEMENTED();
41 return false;
42 }
43
44 bool WindowsGetLastFocusedFunction::RunSync() {
45 scoped_ptr<windows::GetLastFocused::Params> params(
46 windows::GetLastFocused::Params::Create(*args_));
47 EXTENSION_FUNCTION_VALIDATE(params.get());
48 NOTIMPLEMENTED();
49 return false;
50 }
51
52 bool WindowsGetAllFunction::RunSync() {
53 scoped_ptr<windows::GetAll::Params> params(
54 windows::GetAll::Params::Create(*args_));
55 EXTENSION_FUNCTION_VALIDATE(params.get());
56 NOTIMPLEMENTED();
57 return false;
58 }
59
60 bool WindowsCreateFunction::ShouldOpenIncognitoWindow(
61 const windows::Create::Params::CreateData* create_data,
62 std::vector<GURL>* urls, bool* is_error) {
63 error_ = keys::kIncognitoModeIsDisabled;
64 *is_error = true;
65 NOTIMPLEMENTED();
66 return false;
67 }
68
69 bool WindowsCreateFunction::RunSync() {
70 scoped_ptr<windows::Create::Params> params(
71 windows::Create::Params::Create(*args_));
72 EXTENSION_FUNCTION_VALIDATE(params);
73 NOTIMPLEMENTED();
74 return false;
75 }
76
77 bool WindowsUpdateFunction::RunSync() {
78 scoped_ptr<windows::Update::Params> params(
79 windows::Update::Params::Create(*args_));
80 EXTENSION_FUNCTION_VALIDATE(params);
81 NOTIMPLEMENTED();
82 return false;
83 }
84
85 bool WindowsRemoveFunction::RunSync() {
86 scoped_ptr<windows::Remove::Params> params(
87 windows::Remove::Params::Create(*args_));
88 EXTENSION_FUNCTION_VALIDATE(params);
89 NOTIMPLEMENTED();
90 return false;
91 }
92
93 // Tabs ------------------------------------------------------------------------
94
95 bool TabsGetSelectedFunction::RunSync() {
96 scoped_ptr<windows::Remove::Params> params(
97 windows::Remove::Params::Create(*args_));
98 EXTENSION_FUNCTION_VALIDATE(params.get());
99 NOTIMPLEMENTED();
100 return false;
101 }
102
103 bool TabsGetAllInWindowFunction::RunSync() {
104 scoped_ptr<tabs::GetAllInWindow::Params> params(
105 tabs::GetAllInWindow::Params::Create(*args_));
106 EXTENSION_FUNCTION_VALIDATE(params.get());
107 NOTIMPLEMENTED();
108 return false;
109 }
110
111 bool TabsQueryFunction::RunSync() {
112 scoped_ptr<tabs::Query::Params> params(tabs::Query::Params::Create(*args_));
113 EXTENSION_FUNCTION_VALIDATE(params.get());
114 NOTIMPLEMENTED();
115 return false;
116 }
117
118 bool TabsCreateFunction::RunSync() {
119 scoped_ptr<tabs::Create::Params> params(tabs::Create::Params::Create(*args_));
120 EXTENSION_FUNCTION_VALIDATE(params.get());
121 NOTIMPLEMENTED();
122 return false;
123 }
124
125 bool TabsDuplicateFunction::RunSync() {
126 scoped_ptr<tabs::Duplicate::Params> params(
127 tabs::Duplicate::Params::Create(*args_));
128 EXTENSION_FUNCTION_VALIDATE(params.get());
129 NOTIMPLEMENTED();
130 return false;
131 }
132
133 bool TabsGetFunction::RunSync() {
134 scoped_ptr<tabs::Get::Params> params(tabs::Get::Params::Create(*args_));
135 EXTENSION_FUNCTION_VALIDATE(params.get());
136 NOTIMPLEMENTED();
137 return false;
138 }
139
140 bool TabsGetCurrentFunction::RunSync() {
141 DCHECK(dispatcher());
142 NOTIMPLEMENTED();
143 return false;
144 }
145
146 bool TabsHighlightFunction::RunSync() {
147 scoped_ptr<tabs::Highlight::Params> params(
148 tabs::Highlight::Params::Create(*args_));
149 EXTENSION_FUNCTION_VALIDATE(params.get());
150 NOTIMPLEMENTED();
151 return false;
152 }
153
154 bool TabsHighlightFunction::HighlightTab(TabStripModel* tabstrip,
155 ui::ListSelectionModel* selection,
156 int* active_index,
157 int index) {
158 NOTREACHED();
159 return false;
160 }
161
162 TabsUpdateFunction::TabsUpdateFunction() : web_contents_(NULL) {
163 }
164
165 bool TabsUpdateFunction::RunAsync() {
166 scoped_ptr<tabs::Update::Params> params(tabs::Update::Params::Create(*args_));
167 EXTENSION_FUNCTION_VALIDATE(params.get());
168 NOTIMPLEMENTED();
169 return false;
170 }
171
172 bool TabsUpdateFunction::UpdateURL(const std::string &url_string,
173 int tab_id,
174 bool* is_async) {
175 NOTREACHED();
176 return false;
177 }
178
179 void TabsUpdateFunction::PopulateResult() {
180 NOTREACHED();
181 }
182
183 void TabsUpdateFunction::OnExecuteCodeFinished(
184 const std::string& error,
185 const GURL& url,
186 const base::ListValue& script_result) {
187 NOTREACHED();
188 }
189
190 bool TabsMoveFunction::RunSync() {
191 scoped_ptr<tabs::Move::Params> params(tabs::Move::Params::Create(*args_));
192 EXTENSION_FUNCTION_VALIDATE(params.get());
193 NOTIMPLEMENTED();
194 return false;
195 }
196
197 bool TabsMoveFunction::MoveTab(int tab_id,
198 int* new_index,
199 int iteration,
200 base::ListValue* tab_values,
201 int* window_id) {
202 NOTREACHED();
203 return false;
204 }
205
206 bool TabsReloadFunction::RunSync() {
207 scoped_ptr<tabs::Reload::Params> params(
208 tabs::Reload::Params::Create(*args_));
209 EXTENSION_FUNCTION_VALIDATE(params.get());
210 NOTIMPLEMENTED();
211 return false;
212 }
213
214 bool TabsRemoveFunction::RunSync() {
215 scoped_ptr<tabs::Remove::Params> params(tabs::Remove::Params::Create(*args_));
216 EXTENSION_FUNCTION_VALIDATE(params.get());
217 NOTIMPLEMENTED();
218 return false;
219 }
220
221 bool TabsRemoveFunction::RemoveTab(int tab_id) {
222 NOTREACHED();
223 return false;
224 }
225
226 TabsCaptureVisibleTabFunction::TabsCaptureVisibleTabFunction()
227 : chrome_details_(this) {
228 }
229
230 bool TabsCaptureVisibleTabFunction::IsScreenshotEnabled() {
231 NOTREACHED();
232 return false;
233 }
234
235 WebContents* TabsCaptureVisibleTabFunction::GetWebContentsForID(int window_id) {
236 NOTREACHED();
237 return NULL;
238 }
239
240 void TabsCaptureVisibleTabFunction::OnCaptureFailure(FailureReason reason) {
241 NOTREACHED();
242 }
243
244 void TabsCaptureVisibleTabFunction::RegisterProfilePrefs(
245 user_prefs::PrefRegistrySyncable* registry) {
246 NOTIMPLEMENTED();
247 }
248
249 bool TabsDetectLanguageFunction::RunAsync() {
250 scoped_ptr<tabs::DetectLanguage::Params> params(
251 tabs::DetectLanguage::Params::Create(*args_));
252 EXTENSION_FUNCTION_VALIDATE(params.get());
253 NOTIMPLEMENTED();
254 return false;
255 }
256
257 void TabsDetectLanguageFunction::Observe(
258 int type,
259 const content::NotificationSource& source,
260 const content::NotificationDetails& details) {
261 NOTREACHED();
262 }
263
264 void TabsDetectLanguageFunction::GotLanguage(const std::string& language) {
265 NOTREACHED();
266 }
267
268 ExecuteCodeInTabFunction::ExecuteCodeInTabFunction()
269 : chrome_details_(this), execute_tab_id_(-1) {
270 (void) execute_tab_id_;
271 }
272
273 ExecuteCodeInTabFunction::~ExecuteCodeInTabFunction() {}
274
275 bool ExecuteCodeInTabFunction::HasPermission() {
276 NOTREACHED();
277 return false;
278 }
279
280 bool ExecuteCodeInTabFunction::Init() {
281 NOTREACHED();
282 return false;
283 }
284
285 bool ExecuteCodeInTabFunction::CanExecuteScriptOnPage() {
286 NOTREACHED();
287 return false;
288 }
289
290 ScriptExecutor* ExecuteCodeInTabFunction::GetScriptExecutor() {
291 NOTREACHED();
292 return NULL;
293 }
294
295 bool ExecuteCodeInTabFunction::IsWebView() const {
296 NOTREACHED();
297 return false;
298 }
299
300 const GURL& ExecuteCodeInTabFunction::GetWebViewSrc() const {
301 NOTREACHED();
302 return GURL::EmptyGURL();
303 }
304
305 bool TabsExecuteScriptFunction::ShouldInsertCSS() const {
306 NOTREACHED();
307 return false;
308 }
309
310 void TabsExecuteScriptFunction::OnExecuteCodeFinished(
311 const std::string& error,
312 const GURL& on_url,
313 const base::ListValue& result) {
314 NOTREACHED();
315 }
316
317 bool TabsInsertCSSFunction::ShouldInsertCSS() const {
318 NOTREACHED();
319 return true;
320 }
321
322 content::WebContents* ZoomAPIFunction::GetWebContents(int tab_id) {
323 NOTREACHED();
324 return NULL;
325 }
326
327 bool TabsSetZoomFunction::RunAsync() {
328 scoped_ptr<tabs::SetZoom::Params> params(
329 tabs::SetZoom::Params::Create(*args_));
330 EXTENSION_FUNCTION_VALIDATE(params);
331 NOTIMPLEMENTED();
332 return false;
333 }
334
335 bool TabsGetZoomFunction::RunAsync() {
336 scoped_ptr<tabs::GetZoom::Params> params(
337 tabs::GetZoom::Params::Create(*args_));
338 EXTENSION_FUNCTION_VALIDATE(params);
339 NOTIMPLEMENTED();
340 return false;
341 }
342
343 bool TabsSetZoomSettingsFunction::RunAsync() {
344 using api::tabs::ZoomSettings;
345 scoped_ptr<tabs::SetZoomSettings::Params> params(
346 tabs::SetZoomSettings::Params::Create(*args_));
347 EXTENSION_FUNCTION_VALIDATE(params);
348 NOTIMPLEMENTED();
349 return false;
350 }
351
352 bool TabsGetZoomSettingsFunction::RunAsync() {
353 scoped_ptr<tabs::GetZoomSettings::Params> params(
354 tabs::GetZoomSettings::Params::Create(*args_));
355 EXTENSION_FUNCTION_VALIDATE(params);
356 NOTIMPLEMENTED();
357 return false;
358 }
359
360 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/display_info_provider_athena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698