| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_SAD_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_SAD_PLUGIN_H_ |
| 6 #define CONTENT_RENDERER_SAD_PLUGIN_H_ | 6 #define CONTENT_RENDERER_SAD_PLUGIN_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/public/platform/WebCanvas.h" | 8 #include "third_party/WebKit/public/platform/WebCanvas.h" |
| 9 | 9 |
| 10 class SkBitmap; | 10 class SkBitmap; |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 // Paints the sad plugin to the given canvas for the given plugin bounds. This | 18 // Paints the sad plugin to the given canvas for the given plugin bounds. This |
| 19 // is used by both the NPAPI and the PPAPI out-of-process plugin impls. | 19 // is used by both the NPAPI and the PPAPI out-of-process plugin impls. |
| 20 void PaintSadPlugin(WebKit::WebCanvas* canvas, | 20 void PaintSadPlugin(blink::WebCanvas* canvas, |
| 21 const gfx::Rect& plugin_rect, | 21 const gfx::Rect& plugin_rect, |
| 22 const SkBitmap& sad_plugin_bitmap); | 22 const SkBitmap& sad_plugin_bitmap); |
| 23 | 23 |
| 24 } // namespace content | 24 } // namespace content |
| 25 | 25 |
| 26 #endif // CONTENT_RENDERER_SAD_PLUGIN_H_ | 26 #endif // CONTENT_RENDERER_SAD_PLUGIN_H_ |
| OLD | NEW |