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

Side by Side Diff: content/test/layouttest_support.cc

Issue 2649023004: Have one ICCProfile per WebScreenInfo in Blink. (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget_owner_delegate.h ('k') | third_party/WebKit/public/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698