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

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: remove SizeOfVector 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 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint( 1600 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint(
1601 const gfx::Rect& paint_bounds, 1601 const gfx::Rect& paint_bounds,
1602 TransportDIB** dib, 1602 TransportDIB** dib,
1603 gfx::Rect* location, 1603 gfx::Rect* location,
1604 gfx::Rect* clip, 1604 gfx::Rect* clip,
1605 float* scale_factor) { 1605 float* scale_factor) {
1606 // Bare RenderWidgets don't support optimized plugin painting. 1606 // Bare RenderWidgets don't support optimized plugin painting.
1607 return NULL; 1607 return NULL;
1608 } 1608 }
1609 1609
1610 gfx::Point RenderWidget::GetScrollOffset() { 1610 gfx::Vector2d RenderWidget::GetScrollOffset() {
1611 // Bare RenderWidgets don't support scroll offset. 1611 // Bare RenderWidgets don't support scroll offset.
1612 return gfx::Point(0, 0); 1612 return gfx::Vector2d(0, 0);
1613 } 1613 }
1614 1614
1615 void RenderWidget::SetHidden(bool hidden) { 1615 void RenderWidget::SetHidden(bool hidden) {
1616 if (is_hidden_ == hidden) 1616 if (is_hidden_ == hidden)
1617 return; 1617 return;
1618 1618
1619 // The status has changed. Tell the RenderThread about it. 1619 // The status has changed. Tell the RenderThread about it.
1620 is_hidden_ = hidden; 1620 is_hidden_ = hidden;
1621 if (is_hidden_) 1621 if (is_hidden_)
1622 RenderThread::Get()->WidgetHidden(); 1622 RenderThread::Get()->WidgetHidden();
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 1902
1903 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1903 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1904 return false; 1904 return false;
1905 } 1905 }
1906 1906
1907 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1907 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1908 return false; 1908 return false;
1909 } 1909 }
1910 1910
1911 } // namespace content 1911 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698