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

Side by Side Diff: chrome/browser/extensions/extension_toolstrip_api.h

Issue 160276: mole expand/collapse API (Closed)
Patch Set: mole API Created 11 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
(Empty)
1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLSTRIP_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLSTRIP_API_H_
7
8 #include "chrome/browser/extensions/extension_function.h"
9 #include "chrome/browser/extensions/extension_shelf_model.h"
10
11 namespace extension_toolstrip_api_constants {
12 // Errors.
13 extern const char kNotAToolstripError[];
14 extern const char kAlreadyExpandedError[];
15 extern const char kAlreadyCollapsedError[];
16
17 // Function names.
18 extern const char kExpandFunction[];
19 extern const char kCollapseFunction[];
20 }; // namespace extension_toolstrip_api_constants
21
22 class ToolstripFunction : public AsyncExtensionFunction {
23 protected:
24 virtual bool RunImpl();
25
26 ExtensionShelfModel* model_;
27 ExtensionShelfModel::iterator toolstrip_;
28 };
29
30 class ToolstripExpandFunction : public ToolstripFunction {
31 virtual bool RunImpl();
32 };
33
34 class ToolstripCollapseFunction : public ToolstripFunction {
35 virtual bool RunImpl();
36 };
37
38 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLSTRIP_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_shelf_model.cc ('k') | chrome/browser/extensions/extension_toolstrip_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698