| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 } else if (name == "adobeRGB") { | 507 } else if (name == "adobeRGB") { |
| 508 return gfx::ICCProfileForTestingAdobeRGB(); | 508 return gfx::ICCProfileForTestingAdobeRGB(); |
| 509 } | 509 } |
| 510 return gfx::ICCProfile(); | 510 return gfx::ICCProfile(); |
| 511 } | 511 } |
| 512 | 512 |
| 513 void SetDeviceColorProfile( | 513 void SetDeviceColorProfile( |
| 514 RenderView* render_view, const gfx::ICCProfile& icc_profile) { | 514 RenderView* render_view, const gfx::ICCProfile& icc_profile) { |
| 515 static_cast<RenderViewImpl*>(render_view) | 515 static_cast<RenderViewImpl*>(render_view) |
| 516 ->GetWidget() | 516 ->GetWidget() |
| 517 ->SetDeviceColorProfileForTesting(icc_profile.GetData()); | 517 ->SetDeviceColorProfileForTesting(icc_profile); |
| 518 } | 518 } |
| 519 | 519 |
| 520 void SetTestBluetoothScanDuration() { | 520 void SetTestBluetoothScanDuration() { |
| 521 BluetoothDeviceChooserController::SetTestScanDurationForTesting(); | 521 BluetoothDeviceChooserController::SetTestScanDurationForTesting(); |
| 522 } | 522 } |
| 523 | 523 |
| 524 void UseSynchronousResizeMode(RenderView* render_view, bool enable) { | 524 void UseSynchronousResizeMode(RenderView* render_view, bool enable) { |
| 525 static_cast<RenderViewImpl*>(render_view)-> | 525 static_cast<RenderViewImpl*>(render_view)-> |
| 526 UseSynchronousResizeModeForTesting(enable); | 526 UseSynchronousResizeModeForTesting(enable); |
| 527 } | 527 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 } | 602 } |
| 603 | 603 |
| 604 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { | 604 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { |
| 605 if (auto* render_widget = | 605 if (auto* render_widget = |
| 606 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { | 606 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { |
| 607 render_widget->ShowVirtualKeyboard(); | 607 render_widget->ShowVirtualKeyboard(); |
| 608 } | 608 } |
| 609 } | 609 } |
| 610 | 610 |
| 611 } // namespace content | 611 } // namespace content |
| OLD | NEW |