| OLD | NEW |
| 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_EXTENSION_TAB_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "chrome/common/extensions/api/tabs.h" | 12 #include "chrome/common/extensions/api/tabs.h" |
| 12 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
| 13 | 14 |
| 14 class Browser; | 15 class Browser; |
| 15 class ChromeExtensionFunctionDetails; | 16 class ChromeExtensionFunctionDetails; |
| 16 class ChromeUIThreadExtensionFunction; | 17 class ChromeUIThreadExtensionFunction; |
| 17 class ExtensionFunction; | 18 class ExtensionFunction; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 static bool OpenOptionsPage(const Extension* extension, Browser* browser); | 175 static bool OpenOptionsPage(const Extension* extension, Browser* browser); |
| 175 | 176 |
| 176 // Returns true if the given Browser can report tabs to extensions. | 177 // Returns true if the given Browser can report tabs to extensions. |
| 177 // Example of Browsers which don't support tabs include apps and devtools. | 178 // Example of Browsers which don't support tabs include apps and devtools. |
| 178 static bool BrowserSupportsTabs(Browser* browser); | 179 static bool BrowserSupportsTabs(Browser* browser); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace extensions | 182 } // namespace extensions |
| 182 | 183 |
| 183 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ | 184 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H_ |
| OLD | NEW |