OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/extensions/browser_action_test_util.h" | 5 #include "chrome/browser/extensions/browser_action_test_util.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/extensions/extension_action_view_controller.h" | 10 #include "chrome/browser/ui/extensions/extension_action_view_controller.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 bool BrowserActionTestUtil::ActionButtonWantsToRun(size_t index) { | 108 bool BrowserActionTestUtil::ActionButtonWantsToRun(size_t index) { |
109 return GetContainer(browser_, bar_delegate_)->GetToolbarActionViewAt(index)-> | 109 return GetContainer(browser_, bar_delegate_)->GetToolbarActionViewAt(index)-> |
110 wants_to_run_for_testing(); | 110 wants_to_run_for_testing(); |
111 } | 111 } |
112 | 112 |
113 bool BrowserActionTestUtil::OverflowedActionButtonWantsToRun() { | 113 bool BrowserActionTestUtil::OverflowedActionButtonWantsToRun() { |
114 return BrowserView::GetBrowserViewForBrowser(browser_)->toolbar()-> | 114 return BrowserView::GetBrowserViewForBrowser(browser_)->toolbar()-> |
115 app_menu()->overflowed_toolbar_action_wants_to_run_for_testing(); | 115 app_menu()->overflowed_toolbar_action_wants_to_run_for_testing(); |
116 } | 116 } |
117 | 117 |
| 118 ToolbarActionsBar* BrowserActionTestUtil::GetToolbarActionsBar() { |
| 119 return GetContainer(browser_, bar_delegate_)->toolbar_actions_bar(); |
| 120 } |
| 121 |
118 // static | 122 // static |
119 gfx::Size BrowserActionTestUtil::GetMinPopupSize() { | 123 gfx::Size BrowserActionTestUtil::GetMinPopupSize() { |
120 return gfx::Size(ExtensionPopup::kMinWidth, ExtensionPopup::kMinHeight); | 124 return gfx::Size(ExtensionPopup::kMinWidth, ExtensionPopup::kMinHeight); |
121 } | 125 } |
122 | 126 |
123 // static | 127 // static |
124 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() { | 128 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() { |
125 return gfx::Size(ExtensionPopup::kMaxWidth, ExtensionPopup::kMaxHeight); | 129 return gfx::Size(ExtensionPopup::kMaxWidth, ExtensionPopup::kMaxHeight); |
126 } | 130 } |
OLD | NEW |