| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } else if (name == "test" || name == "colorSpin") { | 502 } else if (name == "test" || name == "colorSpin") { |
| 503 return gfx::ICCProfileForTestingColorSpin(); | 503 return gfx::ICCProfileForTestingColorSpin(); |
| 504 } else if (name == "adobeRGB") { | 504 } else if (name == "adobeRGB") { |
| 505 return gfx::ICCProfileForTestingAdobeRGB(); | 505 return gfx::ICCProfileForTestingAdobeRGB(); |
| 506 } | 506 } |
| 507 return gfx::ICCProfile(); | 507 return gfx::ICCProfile(); |
| 508 } | 508 } |
| 509 | 509 |
| 510 void SetDeviceColorProfile( | 510 void SetDeviceColorProfile( |
| 511 RenderView* render_view, const gfx::ICCProfile& icc_profile) { | 511 RenderView* render_view, const gfx::ICCProfile& icc_profile) { |
| 512 static_cast<RenderViewImpl*>(render_view) | 512 static_cast<RenderViewImpl*>(render_view)-> |
| 513 ->GetWidget() | 513 SetDeviceColorProfileForTesting(icc_profile); |
| 514 ->SetDeviceColorProfileForTesting(icc_profile); | |
| 515 } | 514 } |
| 516 | 515 |
| 517 void SetTestBluetoothScanDuration() { | 516 void SetTestBluetoothScanDuration() { |
| 518 BluetoothDeviceChooserController::SetTestScanDurationForTesting(); | 517 BluetoothDeviceChooserController::SetTestScanDurationForTesting(); |
| 519 } | 518 } |
| 520 | 519 |
| 521 void UseSynchronousResizeMode(RenderView* render_view, bool enable) { | 520 void UseSynchronousResizeMode(RenderView* render_view, bool enable) { |
| 522 static_cast<RenderViewImpl*>(render_view)-> | 521 static_cast<RenderViewImpl*>(render_view)-> |
| 523 UseSynchronousResizeModeForTesting(enable); | 522 UseSynchronousResizeModeForTesting(enable); |
| 524 } | 523 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 } | 604 } |
| 606 } | 605 } |
| 607 | 606 |
| 608 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { | 607 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { |
| 609 RequestExtraData* extra_data = static_cast<RequestExtraData*>( | 608 RequestExtraData* extra_data = static_cast<RequestExtraData*>( |
| 610 request.getExtraData()); | 609 request.getExtraData()); |
| 611 return extra_data && extra_data->navigation_initiated_by_renderer(); | 610 return extra_data && extra_data->navigation_initiated_by_renderer(); |
| 612 } | 611 } |
| 613 | 612 |
| 614 } // namespace content | 613 } // namespace content |
| OLD | NEW |