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

Side by Side Diff: content/shell/browser/blink_test_controller.cc

Issue 1541713002: Revert of Support device scale factor test with popups in LayoutTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/shell/browser/blink_test_controller.h ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/shell/browser/blink_test_controller.h" 5 #include "content/shell/browser/blink_test_controller.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 IPC_MESSAGE_HANDLER(ShellViewHostMsg_CloseRemainingWindows, 406 IPC_MESSAGE_HANDLER(ShellViewHostMsg_CloseRemainingWindows,
407 OnCloseRemainingWindows) 407 OnCloseRemainingWindows)
408 IPC_MESSAGE_HANDLER(ShellViewHostMsg_ResetDone, OnResetDone) 408 IPC_MESSAGE_HANDLER(ShellViewHostMsg_ResetDone, OnResetDone)
409 IPC_MESSAGE_HANDLER(ShellViewHostMsg_LeakDetectionDone, OnLeakDetectionDone) 409 IPC_MESSAGE_HANDLER(ShellViewHostMsg_LeakDetectionDone, OnLeakDetectionDone)
410 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetBluetoothManualChooser, 410 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetBluetoothManualChooser,
411 OnSetBluetoothManualChooser) 411 OnSetBluetoothManualChooser)
412 IPC_MESSAGE_HANDLER(ShellViewHostMsg_GetBluetoothManualChooserEvents, 412 IPC_MESSAGE_HANDLER(ShellViewHostMsg_GetBluetoothManualChooserEvents,
413 OnGetBluetoothManualChooserEvents) 413 OnGetBluetoothManualChooserEvents)
414 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SendBluetoothManualChooserEvent, 414 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SendBluetoothManualChooserEvent,
415 OnSendBluetoothManualChooserEvent) 415 OnSendBluetoothManualChooserEvent)
416 IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetDeviceScaleFactor,
417 OnSetDeviceScaleFactor)
418 IPC_MESSAGE_UNHANDLED(handled = false) 416 IPC_MESSAGE_UNHANDLED(handled = false)
419 IPC_END_MESSAGE_MAP() 417 IPC_END_MESSAGE_MAP()
420 418
421 return handled; 419 return handled;
422 } 420 }
423 421
424 void BlinkTestController::PluginCrashed(const base::FilePath& plugin_path, 422 void BlinkTestController::PluginCrashed(const base::FilePath& plugin_path,
425 base::ProcessId plugin_pid) { 423 base::ProcessId plugin_pid) {
426 DCHECK(CalledOnValidThread()); 424 DCHECK(CalledOnValidThread());
427 printer_->AddErrorMessage( 425 printer_->AddErrorMessage(
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 event = BluetoothChooser::Event::RESCAN; 765 event = BluetoothChooser::Event::RESCAN;
768 } else { 766 } else {
769 printer_->AddErrorMessage(base::StringPrintf( 767 printer_->AddErrorMessage(base::StringPrintf(
770 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", 768 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.",
771 event_name.c_str())); 769 event_name.c_str()));
772 return; 770 return;
773 } 771 }
774 bluetooth_chooser_factory_->SendEvent(event, argument); 772 bluetooth_chooser_factory_->SendEvent(event, argument);
775 } 773 }
776 774
777 void BlinkTestController::OnSetDeviceScaleFactor(float scale) {
778 main_window_->SetDeviceScaleFactor(scale);
779 }
780
781 } // namespace content 775 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/blink_test_controller.h ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698