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

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

Issue 661493004: Add infrastructure for Chrome Actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/extensions/extension_toolbar_model.h » ('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 11 matching lines...) Expand all
22 class BrowserActionTestUtil { 22 class BrowserActionTestUtil {
23 public: 23 public:
24 explicit BrowserActionTestUtil(Browser* browser) : browser_(browser) {} 24 explicit BrowserActionTestUtil(Browser* browser) : browser_(browser) {}
25 25
26 // Returns the number of browser action buttons in the window toolbar. 26 // Returns the number of browser action buttons in the window toolbar.
27 int NumberOfBrowserActions(); 27 int NumberOfBrowserActions();
28 28
29 // Returns the number of browser action currently visible. 29 // Returns the number of browser action currently visible.
30 int VisibleBrowserActions(); 30 int VisibleBrowserActions();
31 31
32 // Returns the ExtensionAction for the given index.
33 ExtensionAction* GetExtensionAction(int index);
34
35 // Inspects the extension popup for the action at the given index. 32 // Inspects the extension popup for the action at the given index.
36 void InspectPopup(int index); 33 void InspectPopup(int index);
37 34
38 // Returns whether the browser action at |index| has a non-null icon. Note 35 // Returns whether the browser action at |index| has a non-null icon. Note
39 // that the icon is loaded asynchronously, in which case you can wait for it 36 // that the icon is loaded asynchronously, in which case you can wait for it
40 // to load by calling WaitForBrowserActionUpdated. 37 // to load by calling WaitForBrowserActionUpdated.
41 bool HasIcon(int index); 38 bool HasIcon(int index);
42 39
43 // Returns icon for the browser action at |index|. 40 // Returns icon for the browser action at |index|.
44 gfx::Image GetIcon(int index); 41 gfx::Image GetIcon(int index);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static gfx::Size GetMinPopupSize(); 73 static gfx::Size GetMinPopupSize();
77 74
78 // Returns the maximum allowed size of an extension popup. 75 // Returns the maximum allowed size of an extension popup.
79 static gfx::Size GetMaxPopupSize(); 76 static gfx::Size GetMaxPopupSize();
80 77
81 private: 78 private:
82 Browser* browser_; // weak 79 Browser* browser_; // weak
83 }; 80 };
84 81
85 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698