From 277a111a05b3c230cea9c68977eb5a130386c1ec Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sat, 19 Mar 2011 06:03:56 +0000 Subject: 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 --- webkit/plugins/sad_plugin.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 webkit/plugins/sad_plugin.h (limited to 'webkit/plugins/sad_plugin.h') 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_ -- cgit v1.1