| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Simulates a user click on the browser action button at |index|. | 63 // Simulates a user click on the browser action button at |index|. |
| 64 void Press(int index); | 64 void Press(int index); |
| 65 | 65 |
| 66 // Returns the extension id of the extension at |index|. | 66 // Returns the extension id of the extension at |index|. |
| 67 std::string GetExtensionId(int index); | 67 std::string GetExtensionId(int index); |
| 68 | 68 |
| 69 // Returns the current tooltip for the browser action button. | 69 // Returns the current tooltip for the browser action button. |
| 70 std::string GetTooltip(int index); | 70 std::string GetTooltip(int index); |
| 71 | 71 |
| 72 gfx::NativeView GetPopupNativeView(); | 72 gfx::NativeViewId GetPopupNativeView(); |
| 73 | 73 |
| 74 // Returns whether a browser action popup is being shown currently. | 74 // Returns whether a browser action popup is being shown currently. |
| 75 bool HasPopup(); | 75 bool HasPopup(); |
| 76 | 76 |
| 77 // Returns the size of the current browser action popup. | 77 // Returns the size of the current browser action popup. |
| 78 gfx::Size GetPopupSize(); | 78 gfx::Size GetPopupSize(); |
| 79 | 79 |
| 80 // Hides the given popup and returns whether the hide was successful. | 80 // Hides the given popup and returns whether the hide was successful. |
| 81 bool HidePopup(); | 81 bool HidePopup(); |
| 82 | 82 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 109 Browser* browser_; // weak | 109 Browser* browser_; // weak |
| 110 | 110 |
| 111 // Our test helper, which constructs and owns the views if we don't have a | 111 // Our test helper, which constructs and owns the views if we don't have a |
| 112 // real browser window, or if this is an overflow version. | 112 // real browser window, or if this is an overflow version. |
| 113 std::unique_ptr<TestToolbarActionsBarHelper> test_helper_; | 113 std::unique_ptr<TestToolbarActionsBarHelper> test_helper_; |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(BrowserActionTestUtil); | 115 DISALLOW_COPY_AND_ASSIGN(BrowserActionTestUtil); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 118 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| OLD | NEW |