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

Side by Side Diff: content/shell/webkit_test_runner_host.cc

Issue 11414260: Revert 170451 - [content shell] add support for testRunner.canOpenWindows and disallow opening wind… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/webkit_test_runner_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/webkit_test_runner_host.h" 5 #include "content/shell/webkit_test_runner_host.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 printer_->PrintImageFooter(); 174 printer_->PrintImageFooter();
175 enable_pixel_dumping_ = false; 175 enable_pixel_dumping_ = false;
176 expected_pixel_hash_.clear(); 176 expected_pixel_hash_.clear();
177 captured_dump_ = false; 177 captured_dump_ = false;
178 dump_as_text_ = false; 178 dump_as_text_ = false;
179 dump_child_frames_ = false; 179 dump_child_frames_ = false;
180 is_printing_ = false; 180 is_printing_ = false;
181 should_stay_on_page_after_handling_before_unload_ = false; 181 should_stay_on_page_after_handling_before_unload_ = false;
182 wait_until_done_ = false; 182 wait_until_done_ = false;
183 prefs_ = ShellWebPreferences(); 183 prefs_ = ShellWebPreferences();
184 can_open_windows_ = false;
185 watchdog_.Cancel(); 184 watchdog_.Cancel();
186 if (main_window_) { 185 if (main_window_) {
187 Observe(NULL); 186 Observe(NULL);
188 main_window_ = NULL; 187 main_window_ = NULL;
189 } 188 }
190 Shell::CloseAllWindows(); 189 Shell::CloseAllWindows();
191 Send(new ShellViewMsg_ResetAll); 190 Send(new ShellViewMsg_ResetAll);
192 return true; 191 return true;
193 } 192 }
194 193
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 IPC_MESSAGE_HANDLER(ShellViewHostMsg_NotifyDone, OnNotifyDone) 373 IPC_MESSAGE_HANDLER(ShellViewHostMsg_NotifyDone, OnNotifyDone)
375 IPC_MESSAGE_HANDLER(ShellViewHostMsg_DumpAsText, OnDumpAsText) 374 IPC_MESSAGE_HANDLER(ShellViewHostMsg_DumpAsText, OnDumpAsText)
376 IPC_MESSAGE_HANDLER(ShellViewHostMsg_DumpChildFramesAsText, 375 IPC_MESSAGE_HANDLER(ShellViewHostMsg_DumpChildFramesAsText,
377 OnDumpChildFramesAsText) 376 OnDumpChildFramesAsText)
378 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetPrinting, OnSetPrinting) 377 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetPrinting, OnSetPrinting)
379 IPC_MESSAGE_HANDLER( 378 IPC_MESSAGE_HANDLER(
380 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, 379 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload,
381 OnSetShouldStayOnPageAfterHandlingBeforeUnload) 380 OnSetShouldStayOnPageAfterHandlingBeforeUnload)
382 IPC_MESSAGE_HANDLER(ShellViewHostMsg_WaitUntilDone, OnWaitUntilDone) 381 IPC_MESSAGE_HANDLER(ShellViewHostMsg_WaitUntilDone, OnWaitUntilDone)
383 IPC_MESSAGE_HANDLER(ShellViewHostMsg_NotImplemented, OnNotImplemented) 382 IPC_MESSAGE_HANDLER(ShellViewHostMsg_NotImplemented, OnNotImplemented)
384 IPC_MESSAGE_HANDLER(ShellViewHostMsg_CanOpenWindows, OnCanOpenWindows)
385 IPC_MESSAGE_UNHANDLED(handled = false) 383 IPC_MESSAGE_UNHANDLED(handled = false)
386 IPC_END_MESSAGE_MAP() 384 IPC_END_MESSAGE_MAP()
387 385
388 return handled; 386 return handled;
389 } 387 }
390 388
391 void WebKitTestRunnerHost::OnNotifyDone() { 389 void WebKitTestRunnerHost::OnNotifyDone() {
392 WebKitTestController::Get()->NotifyDone(); 390 WebKitTestController::Get()->NotifyDone();
393 } 391 }
394 392
(...skipping 19 matching lines...) Expand all
414 void WebKitTestRunnerHost::OnWaitUntilDone() { 412 void WebKitTestRunnerHost::OnWaitUntilDone() {
415 WebKitTestController::Get()->WaitUntilDone(); 413 WebKitTestController::Get()->WaitUntilDone();
416 } 414 }
417 415
418 void WebKitTestRunnerHost::OnNotImplemented( 416 void WebKitTestRunnerHost::OnNotImplemented(
419 const std::string& object_name, 417 const std::string& object_name,
420 const std::string& property_name) { 418 const std::string& property_name) {
421 WebKitTestController::Get()->NotImplemented(object_name, property_name); 419 WebKitTestController::Get()->NotImplemented(object_name, property_name);
422 } 420 }
423 421
424 void WebKitTestRunnerHost::OnCanOpenWindows() {
425 WebKitTestController::Get()->set_can_open_windows(true);
426 }
427
428 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/webkit_test_runner_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698