OLD | NEW |
(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_ |
OLD | NEW |