OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_widget_fullscreen_pepper.h" | 5 #include "chrome/renderer/render_widget_fullscreen_pepper.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "chrome/renderer/render_thread.h" | 8 #include "chrome/renderer/render_thread.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 virtual void resize(const WebSize& size) { | 48 virtual void resize(const WebSize& size) { |
49 size_ = size; | 49 size_ = size; |
50 WebRect plugin_rect(0, 0, size_.width, size_.height); | 50 WebRect plugin_rect(0, 0, size_.width, size_.height); |
51 // TODO(piman): transparently scale the plugin instead of resizing it. | 51 // TODO(piman): transparently scale the plugin instead of resizing it. |
52 plugin_->ViewChanged(plugin_rect, plugin_rect); | 52 plugin_->ViewChanged(plugin_rect, plugin_rect); |
53 widget_->GenerateFullRepaint(); | 53 widget_->GenerateFullRepaint(); |
54 } | 54 } |
55 | 55 |
| 56 virtual void animate() { |
| 57 } |
| 58 |
56 virtual void layout() { | 59 virtual void layout() { |
57 } | 60 } |
58 | 61 |
59 virtual void paint(WebCanvas* canvas, const WebRect& rect) { | 62 virtual void paint(WebCanvas* canvas, const WebRect& rect) { |
60 if (!plugin_) | 63 if (!plugin_) |
61 return; | 64 return; |
62 WebRect plugin_rect(0, 0, size_.width, size_.height); | 65 WebRect plugin_rect(0, 0, size_.width, size_.height); |
63 plugin_->Paint(canvas, plugin_rect, rect); | 66 plugin_->Paint(canvas, plugin_rect, rect); |
64 } | 67 } |
65 | 68 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 const gfx::Rect& paint_bounds, | 230 const gfx::Rect& paint_bounds, |
228 TransportDIB** dib, | 231 TransportDIB** dib, |
229 gfx::Rect* location, | 232 gfx::Rect* location, |
230 gfx::Rect* clip) { | 233 gfx::Rect* clip) { |
231 if (plugin_ && | 234 if (plugin_ && |
232 plugin_->GetBitmapForOptimizedPluginPaint(paint_bounds, dib, | 235 plugin_->GetBitmapForOptimizedPluginPaint(paint_bounds, dib, |
233 location, clip)) | 236 location, clip)) |
234 return plugin_; | 237 return plugin_; |
235 return NULL; | 238 return NULL; |
236 } | 239 } |
OLD | NEW |