| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_ACTION_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Returns the number of browser action buttons in the window toolbar. | 25 // Returns the number of browser action buttons in the window toolbar. |
| 26 int NumberOfBrowserActions(); | 26 int NumberOfBrowserActions(); |
| 27 | 27 |
| 28 // Returns the number of browser action currently visible. | 28 // Returns the number of browser action currently visible. |
| 29 int VisibleBrowserActions(); | 29 int VisibleBrowserActions(); |
| 30 | 30 |
| 31 #if defined(TOOLKIT_VIEWS) | 31 #if defined(TOOLKIT_VIEWS) |
| 32 // Returns the ExtensionAction for the given index. | 32 // Returns the ExtensionAction for the given index. |
| 33 ExtensionAction* GetExtensionAction(int index); | 33 ExtensionAction* GetExtensionAction(int index); |
| 34 |
| 35 // Inspects the extension popup for the action at the given index. |
| 36 void InspectPopup(int index); |
| 34 #endif | 37 #endif |
| 35 | 38 |
| 36 // Returns whether the browser action at |index| has a non-null icon. Note | 39 // Returns whether the browser action at |index| has a non-null icon. Note |
| 37 // that the icon is loaded asynchronously, in which case you can wait for it | 40 // that the icon is loaded asynchronously, in which case you can wait for it |
| 38 // to load by calling WaitForBrowserActionUpdated. | 41 // to load by calling WaitForBrowserActionUpdated. |
| 39 bool HasIcon(int index); | 42 bool HasIcon(int index); |
| 40 | 43 |
| 41 // Returns icon for the browser action at |index|. | 44 // Returns icon for the browser action at |index|. |
| 42 gfx::Image GetIcon(int index); | 45 gfx::Image GetIcon(int index); |
| 43 | 46 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 66 static gfx::Size GetMinPopupSize(); | 69 static gfx::Size GetMinPopupSize(); |
| 67 | 70 |
| 68 // Returns the maximum allowed size of an extension popup. | 71 // Returns the maximum allowed size of an extension popup. |
| 69 static gfx::Size GetMaxPopupSize(); | 72 static gfx::Size GetMaxPopupSize(); |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 Browser* browser_; // weak | 75 Browser* browser_; // weak |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| OLD | NEW |