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

Unified Diff: content/renderer/render_view_impl.cc

Issue 316913002: Plumb testRunner dynamic color profile test support into RenderWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index f11075b854483de908580e43a435c8f87ce310f7..72382e75469e4397fda9ccd21a42927817bc1593 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3491,6 +3491,16 @@ void RenderViewImpl::SetDeviceScaleFactor(float device_scale_factor) {
browser_plugin_manager_->UpdateDeviceScaleFactor(device_scale_factor_);
}
+bool RenderViewImpl::SetDeviceColorProfile(
+ const std::vector<char>& profile) {
+ bool changed = RenderWidget::SetDeviceColorProfile(profile);
+ if (changed && webview()) {
+ // TODO(noel): notify the webview() of the color profile change so it
+ // can update and repaint all color profiled page elements.
+ }
+ return changed;
+}
+
ui::TextInputType RenderViewImpl::GetTextInputType() {
#if defined(ENABLE_PLUGINS)
if (focused_pepper_plugin_)
@@ -4006,7 +4016,7 @@ void RenderViewImpl::SetScreenOrientationForTesting(
void RenderViewImpl::SetDeviceColorProfileForTesting(
const std::vector<char>& color_profile) {
- // TODO(noel): Add RenderViewImpl::SetDeviceColorProfile(color_profile).
+ SetDeviceColorProfile(color_profile);
}
void RenderViewImpl::ForceResizeForTesting(const gfx::Size& new_size) {
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698