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

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

Issue 2043063002: DO NOT COMMIT - Unrelated changes made by run-clang-tidy.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_WE998_allwin
Patch Set: Created 4 years, 6 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
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 <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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698