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

Side by Side Diff: content/renderer/render_widget.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasefinal Created 8 years, 1 month 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
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/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint( 1601 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint(
1602 const gfx::Rect& paint_bounds, 1602 const gfx::Rect& paint_bounds,
1603 TransportDIB** dib, 1603 TransportDIB** dib,
1604 gfx::Rect* location, 1604 gfx::Rect* location,
1605 gfx::Rect* clip, 1605 gfx::Rect* clip,
1606 float* scale_factor) { 1606 float* scale_factor) {
1607 // Bare RenderWidgets don't support optimized plugin painting. 1607 // Bare RenderWidgets don't support optimized plugin painting.
1608 return NULL; 1608 return NULL;
1609 } 1609 }
1610 1610
1611 gfx::Point RenderWidget::GetScrollOffset() { 1611 gfx::Vector2d RenderWidget::GetScrollOffset() {
1612 // Bare RenderWidgets don't support scroll offset. 1612 // Bare RenderWidgets don't support scroll offset.
1613 return gfx::Point(0, 0); 1613 return gfx::Vector2d(0, 0);
danakj 2012/10/29 19:17:20 dropped the 0,0.
1614 } 1614 }
1615 1615
1616 void RenderWidget::SetHidden(bool hidden) { 1616 void RenderWidget::SetHidden(bool hidden) {
1617 if (is_hidden_ == hidden) 1617 if (is_hidden_ == hidden)
1618 return; 1618 return;
1619 1619
1620 // The status has changed. Tell the RenderThread about it. 1620 // The status has changed. Tell the RenderThread about it.
1621 is_hidden_ = hidden; 1621 is_hidden_ = hidden;
1622 if (is_hidden_) 1622 if (is_hidden_)
1623 RenderThread::Get()->WidgetHidden(); 1623 RenderThread::Get()->WidgetHidden();
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 1903
1904 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1904 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1905 return false; 1905 return false;
1906 } 1906 }
1907 1907
1908 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1908 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1909 return false; 1909 return false;
1910 } 1910 }
1911 1911
1912 } // namespace content 1912 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698