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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Returns the bounds of the current browser action popup. | 60 // Returns the bounds of the current browser action popup. |
61 gfx::Rect GetPopupBounds(); | 61 gfx::Rect GetPopupBounds(); |
62 | 62 |
63 // Hides the given popup and returns whether the hide was successful. | 63 // Hides the given popup and returns whether the hide was successful. |
64 bool HidePopup(); | 64 bool HidePopup(); |
65 | 65 |
66 // Set how many icons should be visible. | 66 // Set how many icons should be visible. |
67 void SetIconVisibilityCount(size_t icons); | 67 void SetIconVisibilityCount(size_t icons); |
68 | 68 |
| 69 // Disables animation. |
| 70 static void DisableAnimations(); |
| 71 |
| 72 // Enables animation. |
| 73 static void EnableAnimations(); |
| 74 |
69 // Returns the minimum allowed size of an extension popup. | 75 // Returns the minimum allowed size of an extension popup. |
70 static gfx::Size GetMinPopupSize(); | 76 static gfx::Size GetMinPopupSize(); |
71 | 77 |
72 // Returns the maximum allowed size of an extension popup. | 78 // Returns the maximum allowed size of an extension popup. |
73 static gfx::Size GetMaxPopupSize(); | 79 static gfx::Size GetMaxPopupSize(); |
74 | 80 |
75 private: | 81 private: |
76 Browser* browser_; // weak | 82 Browser* browser_; // weak |
77 }; | 83 }; |
78 | 84 |
79 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 85 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
OLD | NEW |