OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |