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