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

Unified Diff: content/shell/browser/blink_test_controller.cc

Issue 1555163002: Revert "Revert of Support device scale factor test with popups in LayoutTest (patchset #2 id:40001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hypothentical fix Created 4 years, 12 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: content/shell/browser/blink_test_controller.cc
diff --git a/content/shell/browser/blink_test_controller.cc b/content/shell/browser/blink_test_controller.cc
index db0142530440748ce62ecf5d0aac16546292346e..818d356bcdfcc44bb359eb7dd415f98473d29194 100644
--- a/content/shell/browser/blink_test_controller.cc
+++ b/content/shell/browser/blink_test_controller.cc
@@ -416,6 +416,8 @@ bool BlinkTestController::OnMessageReceived(const IPC::Message& message) {
OnGetBluetoothManualChooserEvents)
IPC_MESSAGE_HANDLER(ShellViewHostMsg_SendBluetoothManualChooserEvent,
OnSendBluetoothManualChooserEvent)
+ IPC_MESSAGE_HANDLER(ShellViewHostMsg_SetDeviceScaleFactor,
+ OnSetDeviceScaleFactor)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -775,4 +777,8 @@ void BlinkTestController::OnSendBluetoothManualChooserEvent(
bluetooth_chooser_factory_->SendEvent(event, argument);
}
+void BlinkTestController::OnSetDeviceScaleFactor(float scale) {
+ main_window_->SetDeviceScaleFactor(scale);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698