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

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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 DECLARE_EXTENSION_FUNCTION("windows.getLastFocused", WINDOWS_GETLASTFOCUSED) 58 DECLARE_EXTENSION_FUNCTION("windows.getLastFocused", WINDOWS_GETLASTFOCUSED)
59 }; 59 };
60 class WindowsGetAllFunction : public SyncExtensionFunction { 60 class WindowsGetAllFunction : public SyncExtensionFunction {
61 virtual ~WindowsGetAllFunction() {} 61 virtual ~WindowsGetAllFunction() {}
62 virtual bool RunImpl() OVERRIDE; 62 virtual bool RunImpl() OVERRIDE;
63 DECLARE_EXTENSION_FUNCTION("windows.getAll", WINDOWS_GETALL) 63 DECLARE_EXTENSION_FUNCTION("windows.getAll", WINDOWS_GETALL)
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.
not at google - send to devlin 2013/08/22 15:12:11 add comment line: |create_data| are the options p
pals 2013/08/23 11:29:40 Done.
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(
75 std::vector<GURL>* urls, 75 const api::windows::Create::Params::CreateData* create_data,
76 bool* is_error); 76 std::vector<GURL>* urls,
77 bool* is_error);
77 DECLARE_EXTENSION_FUNCTION("windows.create", WINDOWS_CREATE) 78 DECLARE_EXTENSION_FUNCTION("windows.create", WINDOWS_CREATE)
78 }; 79 };
79 class WindowsUpdateFunction : public SyncExtensionFunction { 80 class WindowsUpdateFunction : public SyncExtensionFunction {
80 virtual ~WindowsUpdateFunction() {} 81 virtual ~WindowsUpdateFunction() {}
81 virtual bool RunImpl() OVERRIDE; 82 virtual bool RunImpl() OVERRIDE;
82 DECLARE_EXTENSION_FUNCTION("windows.update", WINDOWS_UPDATE) 83 DECLARE_EXTENSION_FUNCTION("windows.update", WINDOWS_UPDATE)
83 }; 84 };
84 class WindowsRemoveFunction : public SyncExtensionFunction { 85 class WindowsRemoveFunction : public SyncExtensionFunction {
85 virtual ~WindowsRemoveFunction() {} 86 virtual ~WindowsRemoveFunction() {}
86 virtual bool RunImpl() OVERRIDE; 87 virtual bool RunImpl() OVERRIDE;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 virtual ~TabsInsertCSSFunction() {} 268 virtual ~TabsInsertCSSFunction() {}
268 269
269 virtual bool ShouldInsertCSS() const OVERRIDE; 270 virtual bool ShouldInsertCSS() const OVERRIDE;
270 271
271 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) 272 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS)
272 }; 273 };
273 274
274 } // namespace extensions 275 } // namespace extensions
275 276
276 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 277 #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