OLD | NEW |
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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint( | 1619 webkit::ppapi::PluginInstance* RenderWidget::GetBitmapForOptimizedPluginPaint( |
1620 const gfx::Rect& paint_bounds, | 1620 const gfx::Rect& paint_bounds, |
1621 TransportDIB** dib, | 1621 TransportDIB** dib, |
1622 gfx::Rect* location, | 1622 gfx::Rect* location, |
1623 gfx::Rect* clip, | 1623 gfx::Rect* clip, |
1624 float* scale_factor) { | 1624 float* scale_factor) { |
1625 // Bare RenderWidgets don't support optimized plugin painting. | 1625 // Bare RenderWidgets don't support optimized plugin painting. |
1626 return NULL; | 1626 return NULL; |
1627 } | 1627 } |
1628 | 1628 |
1629 gfx::Point RenderWidget::GetScrollOffset() { | 1629 gfx::Vector2d RenderWidget::GetScrollOffset() { |
1630 // Bare RenderWidgets don't support scroll offset. | 1630 // Bare RenderWidgets don't support scroll offset. |
1631 return gfx::Point(0, 0); | 1631 return gfx::Vector2d(); |
1632 } | 1632 } |
1633 | 1633 |
1634 void RenderWidget::SetHidden(bool hidden) { | 1634 void RenderWidget::SetHidden(bool hidden) { |
1635 if (is_hidden_ == hidden) | 1635 if (is_hidden_ == hidden) |
1636 return; | 1636 return; |
1637 | 1637 |
1638 // The status has changed. Tell the RenderThread about it. | 1638 // The status has changed. Tell the RenderThread about it. |
1639 is_hidden_ = hidden; | 1639 is_hidden_ = hidden; |
1640 if (is_hidden_) | 1640 if (is_hidden_) |
1641 RenderThread::Get()->WidgetHidden(); | 1641 RenderThread::Get()->WidgetHidden(); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 | 1921 |
1922 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1922 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
1923 return false; | 1923 return false; |
1924 } | 1924 } |
1925 | 1925 |
1926 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1926 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
1927 return false; | 1927 return false; |
1928 } | 1928 } |
1929 | 1929 |
1930 } // namespace content | 1930 } // namespace content |
OLD | NEW |