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 // Function names. |
| 12 namespace extension_toolstrip_api_functions { |
| 13 extern const char kExpandFunction[]; |
| 14 extern const char kCollapseFunction[]; |
| 15 }; // namespace extension_toolstrip_api_functions |
| 16 |
| 17 class ToolstripFunction : public SyncExtensionFunction { |
| 18 protected: |
| 19 virtual bool RunImpl(); |
| 20 |
| 21 ExtensionShelfModel* model_; |
| 22 ExtensionShelfModel::iterator toolstrip_; |
| 23 }; |
| 24 |
| 25 class ToolstripExpandFunction : public ToolstripFunction { |
| 26 virtual bool RunImpl(); |
| 27 }; |
| 28 |
| 29 class ToolstripCollapseFunction : public ToolstripFunction { |
| 30 virtual bool RunImpl(); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLSTRIP_API_H_ |
OLD | NEW |