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

Side by Side Diff: content/renderer/render_widget.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 } 1559 }
1560 1560
1561 void RenderWidget::SetDeviceScaleFactor(float device_scale_factor) { 1561 void RenderWidget::SetDeviceScaleFactor(float device_scale_factor) {
1562 if (device_scale_factor_ == device_scale_factor) 1562 if (device_scale_factor_ == device_scale_factor)
1563 return; 1563 return;
1564 1564
1565 device_scale_factor_ = device_scale_factor; 1565 device_scale_factor_ = device_scale_factor;
1566 scheduleComposite(); 1566 scheduleComposite();
1567 } 1567 }
1568 1568
1569 bool RenderWidget::SetDeviceColorProfile(
1570 const std::vector<char>& color_profile) {
1571 if (device_color_profile_ == color_profile)
1572 return false;
1573
1574 device_color_profile_ = color_profile;
1575 return true;
1576 }
1577
1569 void RenderWidget::OnOrientationChange() { 1578 void RenderWidget::OnOrientationChange() {
1570 } 1579 }
1571 1580
1572 gfx::Vector2d RenderWidget::GetScrollOffset() { 1581 gfx::Vector2d RenderWidget::GetScrollOffset() {
1573 // Bare RenderWidgets don't support scroll offset. 1582 // Bare RenderWidgets don't support scroll offset.
1574 return gfx::Vector2d(); 1583 return gfx::Vector2d();
1575 } 1584 }
1576 1585
1577 void RenderWidget::SetHidden(bool hidden) { 1586 void RenderWidget::SetHidden(bool hidden) {
1578 if (is_hidden_ == hidden) 1587 if (is_hidden_ == hidden)
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2140 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2132 video_hole_frames_.AddObserver(frame); 2141 video_hole_frames_.AddObserver(frame);
2133 } 2142 }
2134 2143
2135 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2144 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2136 video_hole_frames_.RemoveObserver(frame); 2145 video_hole_frames_.RemoveObserver(frame);
2137 } 2146 }
2138 #endif // defined(VIDEO_HOLE) 2147 #endif // defined(VIDEO_HOLE)
2139 2148
2140 } // namespace content 2149 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698