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

Unified Diff: content/shell/webkit_test_runner.cc

Issue 11416177: [content shell] change how the main render view is picked for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 1 month 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
« no previous file with comments | « content/shell/webkit_test_runner.h ('k') | content/shell/webkit_test_runner_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_runner.cc
diff --git a/content/shell/webkit_test_runner.cc b/content/shell/webkit_test_runner.cc
index d21bdab0aeb59216336b8dc93cc3011ad1e701e9..122282af219d6f9bfba1cdfe00c1c631128a88bd 100644
--- a/content/shell/webkit_test_runner.cc
+++ b/content/shell/webkit_test_runner.cc
@@ -144,13 +144,10 @@ void CopyCanvasToBitmap(SkCanvas* canvas, SkBitmap* snapshot) {
WebKitTestRunner::WebKitTestRunner(RenderView* render_view)
: RenderViewObserver(render_view),
- RenderViewObserverTracker<WebKitTestRunner>(render_view),
- is_main_window_(false) {
+ RenderViewObserverTracker<WebKitTestRunner>(render_view) {
}
WebKitTestRunner::~WebKitTestRunner() {
- if (is_main_window_)
- ShellRenderProcessObserver::GetInstance()->SetMainWindow(NULL, this);
}
// WebTestDelegate -----------------------------------------------------------
@@ -259,7 +256,6 @@ bool WebKitTestRunner::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ShellViewMsg_CaptureImageDump, OnCaptureImageDump)
IPC_MESSAGE_HANDLER(ShellViewMsg_SetCurrentWorkingDirectory,
OnSetCurrentWorkingDirectory)
- IPC_MESSAGE_HANDLER(ShellViewMsg_SetIsMainWindow, OnSetIsMainWindow)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -337,11 +333,6 @@ void WebKitTestRunner::OnSetCurrentWorkingDirectory(
current_working_directory_ = current_working_directory;
}
-void WebKitTestRunner::OnSetIsMainWindow() {
- is_main_window_ = true;
- ShellRenderProcessObserver::GetInstance()->SetMainWindow(render_view(), this);
-}
-
SkCanvas* WebKitTestRunner::GetCanvas() {
WebView* view = render_view()->GetWebView();
const WebSize& size = view->size();
« no previous file with comments | « content/shell/webkit_test_runner.h ('k') | content/shell/webkit_test_runner_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698