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

Unified Diff: chrome/test/gpu/gpu_pixel_browsertest.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/gpu/gpu_pixel_browsertest.cc
===================================================================
--- chrome/test/gpu/gpu_pixel_browsertest.cc (revision 145001)
+++ chrome/test/gpu/gpu_pixel_browsertest.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
#include "chrome/common/chrome_paths.h"
@@ -166,7 +167,7 @@
js_call << ");";
ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
- browser()->GetActiveWebContents()->GetRenderViewHost(),
+ chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
L"", js_call.str()));
std::string message;
@@ -373,7 +374,7 @@
// have if the tab contents have the desired size.
gfx::Rect GetNewTabContainerBounds(const gfx::Size& desired_size) {
gfx::Rect container_rect;
- browser()->GetActiveWebContents()->GetContainerBounds(&container_rect);
+ chrome::GetActiveWebContents(browser())->GetContainerBounds(&container_rect);
// Size cannot be negative, so use a point.
gfx::Point correction(
desired_size.width() - container_rect.size().width(),
@@ -393,7 +394,7 @@
gfx::Rect root_bounds = browser()->window()->GetBounds();
gfx::Rect tab_contents_bounds;
- browser()->GetActiveWebContents()->GetContainerBounds(
+ chrome::GetActiveWebContents(browser())->GetContainerBounds(
&tab_contents_bounds);
gfx::Rect snapshot_bounds(tab_contents_bounds.x() - root_bounds.x(),
« no previous file with comments | « chrome/test/data/webui/certificate_viewer_ui_test-inl.h ('k') | chrome/test/perf/rendering/latency_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698