Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/browser/extensions/browser_action_test_util.h

Issue 640423003: Create a cross-platform browsertest for the browser actions bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698