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

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

Issue 2641973002: Use gfx::ICCProfile type consistently (Closed)
Patch Set: Created 3 years, 11 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget_owner_delegate.h ('k') | third_party/WebKit/Source/platform/graphics/ColorBehavior.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698