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

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

Issue 1525933002: 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
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)
416 IPC_MESSAGE_UNHANDLED(handled = false) 418 IPC_MESSAGE_UNHANDLED(handled = false)
417 IPC_END_MESSAGE_MAP() 419 IPC_END_MESSAGE_MAP()
418 420
419 return handled; 421 return handled;
420 } 422 }
421 423
422 void BlinkTestController::PluginCrashed(const base::FilePath& plugin_path, 424 void BlinkTestController::PluginCrashed(const base::FilePath& plugin_path,
423 base::ProcessId plugin_pid) { 425 base::ProcessId plugin_pid) {
424 DCHECK(CalledOnValidThread()); 426 DCHECK(CalledOnValidThread());
425 printer_->AddErrorMessage( 427 printer_->AddErrorMessage(
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 event = BluetoothChooser::Event::RESCAN; 767 event = BluetoothChooser::Event::RESCAN;
766 } else { 768 } else {
767 printer_->AddErrorMessage(base::StringPrintf( 769 printer_->AddErrorMessage(base::StringPrintf(
768 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", 770 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.",
769 event_name.c_str())); 771 event_name.c_str()));
770 return; 772 return;
771 } 773 }
772 bluetooth_chooser_factory_->SendEvent(event, argument); 774 bluetooth_chooser_factory_->SendEvent(event, argument);
773 } 775 }
774 776
777 void BlinkTestController::OnSetDeviceScaleFactor(float scale) {
778 main_window_->SetDeviceScaleFactor(scale);
779 }
780
775 } // namespace content 781 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698