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