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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api.h

Issue 23377002: Clean up windows API implementations to use JSON compiler generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 64 };
65 class WindowsCreateFunction : public SyncExtensionFunction { 65 class WindowsCreateFunction : public SyncExtensionFunction {
66 virtual ~WindowsCreateFunction() {} 66 virtual ~WindowsCreateFunction() {}
67 virtual bool RunImpl() OVERRIDE; 67 virtual bool RunImpl() OVERRIDE;
68 // Returns whether the window should be created in incognito mode. 68 // Returns whether the window should be created in incognito mode.
69 // |urls| is the list of urls to open. If we are creating an incognito window, 69 // |urls| is the list of urls to open. If we are creating an incognito window,
70 // the function will remove these urls which may not be opened in incognito 70 // the function will remove these urls which may not be opened in incognito
71 // mode. If window creation leads the browser into an erroneous state, 71 // mode. If window creation leads the browser into an erroneous state,
72 // |is_error| is set to true (also, error_ member variable is assigned 72 // |is_error| is set to true (also, error_ member variable is assigned
73 // the proper error message). 73 // the proper error message).
74 bool ShouldOpenIncognitoWindow(const base::DictionaryValue* args, 74 bool ShouldOpenIncognitoWindow(const api::windows::Create::Params* args,
75 std::vector<GURL>* urls, 75 std::vector<GURL>* urls,
76 bool* is_error); 76 bool* is_error);
77 DECLARE_EXTENSION_FUNCTION("windows.create", WINDOWS_CREATE) 77 DECLARE_EXTENSION_FUNCTION("windows.create", WINDOWS_CREATE)
78 }; 78 };
79 class WindowsUpdateFunction : public SyncExtensionFunction { 79 class WindowsUpdateFunction : public SyncExtensionFunction {
80 virtual ~WindowsUpdateFunction() {} 80 virtual ~WindowsUpdateFunction() {}
81 virtual bool RunImpl() OVERRIDE; 81 virtual bool RunImpl() OVERRIDE;
82 DECLARE_EXTENSION_FUNCTION("windows.update", WINDOWS_UPDATE) 82 DECLARE_EXTENSION_FUNCTION("windows.update", WINDOWS_UPDATE)
83 }; 83 };
84 class WindowsRemoveFunction : public SyncExtensionFunction { 84 class WindowsRemoveFunction : public SyncExtensionFunction {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 virtual ~TabsInsertCSSFunction() {} 267 virtual ~TabsInsertCSSFunction() {}
268 268
269 virtual bool ShouldInsertCSS() const OVERRIDE; 269 virtual bool ShouldInsertCSS() const OVERRIDE;
270 270
271 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) 271 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS)
272 }; 272 };
273 273
274 } // namespace extensions 274 } // namespace extensions
275 275
276 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 276 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698