Lines Matching refs:browser_view
5 #include "chrome/browser/ui/views/frame/browser_view.h"
46 gfx::Point ExpectedTabStripOrigin(BrowserView* browser_view) {
48 browser_view->frame()->GetBoundsForTabStrip(browser_view->tabstrip()));
50 views::View::ConvertPointToTarget(browser_view->parent(),
51 browser_view,
81 BrowserView* browser_view() { return browser_view_; }
157 EXPECT_TRUE(browser_view()->browser());
160 EXPECT_TRUE(browser_view()->IsTabStripVisible());
161 EXPECT_FALSE(browser_view()->IsOffTheRecord());
162 EXPECT_EQ(IDR_OTR_ICON, browser_view()->GetOTRIconResourceID());
163 EXPECT_FALSE(browser_view()->IsGuestSession());
164 EXPECT_FALSE(browser_view()->ShouldShowAvatar());
165 EXPECT_TRUE(browser_view()->IsBrowserTypeNormal());
166 EXPECT_FALSE(browser_view()->IsFullscreen());
167 EXPECT_FALSE(browser_view()->IsBookmarkBarVisible());
168 EXPECT_FALSE(browser_view()->IsBookmarkBarAnimating());
176 Browser* browser = browser_view()->browser();
177 TopContainerView* top_container = browser_view()->top_container();
178 TabStrip* tabstrip = browser_view()->tabstrip();
179 ToolbarView* toolbar = browser_view()->toolbar();
181 browser_view()->GetContentsSplitForTest();
183 browser_view()->GetContentsWebViewForTest();
189 EXPECT_EQ(top_container, browser_view()->tabstrip()->parent());
190 EXPECT_EQ(top_container, browser_view()->toolbar()->parent());
191 EXPECT_EQ(top_container, browser_view()->GetBookmarkBarView()->parent());
192 EXPECT_EQ(browser_view(), browser_view()->infobar_container()->parent());
196 EXPECT_EQ(browser_view()->child_count() - 1,
197 browser_view()->GetIndexOf(browser_view()->find_bar_host_view()));
198 EXPECT_EQ(browser_view()->child_count() - 2,
199 browser_view()->GetIndexOf(top_container));
204 EXPECT_EQ(browser_view()->width(), top_container->width());
206 gfx::Point expected_tabstrip_origin = ExpectedTabStripOrigin(browser_view());
220 BookmarkBarView* bookmark_bar = browser_view()->GetBookmarkBarView();
236 EXPECT_EQ(browser_view(), bookmark_bar->parent());
239 EXPECT_EQ(browser_view()->child_count() - 1,
240 browser_view()->GetIndexOf(browser_view()->find_bar_host_view()));
241 EXPECT_EQ(browser_view()->child_count() - 2,
242 browser_view()->GetIndexOf(top_container));
266 EXPECT_EQ(browser_view()->child_count() - 2,
267 browser_view()->GetIndexOf(top_container));
352 EXPECT_TRUE(browser_view()->browser());
354 EXPECT_TRUE(browser_view()->IsTabStripVisible());
357 gfx::Point switcher_point(browser_view()->window_switcher_button()->x() + 2,
358 browser_view()->window_switcher_button()->y());
359 EXPECT_EQ(browser_view()->GetEventHandlerForPoint(switcher_point),
360 browser_view()->window_switcher_button());