diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-19 06:03:56 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-19 06:03:56 +0000 |
commit | 277a111a05b3c230cea9c68977eb5a130386c1ec (patch) | |
tree | e611cfe56303c124643d4adc47729d59af55db0d /webkit/plugins/sad_plugin.h | |
parent | 01cec0a407740bd2b5b92a80b1cbaef8e5ee8f9b (diff) | |
download | chromium_src-277a111a05b3c230cea9c68977eb5a130386c1ec.zip chromium_src-277a111a05b3c230cea9c68977eb5a130386c1ec.tar.gz chromium_src-277a111a05b3c230cea9c68977eb5a130386c1ec.tar.bz2 |
Hook up the sad plugin painting and the crashed plugin infobars for
out-of-process PPAPI plugins. This mostly just forwards notifications up and
provides a way to get the sad plugin image in the PPAPI rendering code.
I moved the NPAPI sad tab painting to a new file so that it could be shared
between the NPAPI and PPAPI.
This also hooks up the name and version information in the task manager for
PPAPI plugins.
R=jam@chromium.org
Review URL: http://codereview.chromium.org/6685091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/sad_plugin.h')
-rw-r--r-- | webkit/plugins/sad_plugin.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/webkit/plugins/sad_plugin.h b/webkit/plugins/sad_plugin.h new file mode 100644 index 0000000..63b0d7f --- /dev/null +++ b/webkit/plugins/sad_plugin.h @@ -0,0 +1,26 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_PLUGINS_SAD_PLUGIN_H_ +#define WEBKIT_PLUGINS_SAD_PLUGIN_H_ + +#include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" + +class SkBitmap; + +namespace gfx { +class Rect; +} + +namespace webkit { + +// Paints the sad plugin to the given canvas for the given plugin bounds. This +// is used by both the NPAPI and the PPAPI out-of-process plugin impls. +void PaintSadPlugin(WebKit::WebCanvas* canvas, + const gfx::Rect& plugin_rect, + const SkBitmap& sad_plugin_bitmap); + +} // namespace + +#endif // WEBKIT_PLUGINS_SAD_PLUGIN_H_ |