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

Side by Side Diff: chrome/renderer/render_widget_fullscreen_pepper.cc

Issue 6007006: Support for requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months 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
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698