| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_SIDEBAR_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| 11 class Profile; | 11 class Profile; |
| 12 class RenderViewHost; | |
| 13 class TabContents; | 12 class TabContents; |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 class DictionaryValue; | 15 class DictionaryValue; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace extension_sidebar_constants { | 18 namespace extension_sidebar_constants { |
| 20 extern const char kActiveState[]; | 19 extern const char kActiveState[]; |
| 21 extern const char kHiddenState[]; | 20 extern const char kHiddenState[]; |
| 22 extern const char kShownState[]; | 21 extern const char kShownState[]; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 109 |
| 111 class ShowSidebarFunction : public SidebarFunction { | 110 class ShowSidebarFunction : public SidebarFunction { |
| 112 private: | 111 private: |
| 113 virtual bool RunImpl(TabContents* tab, | 112 virtual bool RunImpl(TabContents* tab, |
| 114 const std::string& content_id, | 113 const std::string& content_id, |
| 115 const base::DictionaryValue& details); | 114 const base::DictionaryValue& details); |
| 116 DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.show"); | 115 DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.show"); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_ | 118 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_ |
| OLD | NEW |