OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
| 6 #define CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/renderer/plugins/plugin_placeholder.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 11 |
| 12 class MissingPlugin : public PluginPlaceholder { |
| 13 public: |
| 14 // Creates a new WebViewPlugin with a MissingPlugin as a delegate. |
| 15 static webkit::WebViewPlugin* Create( |
| 16 content::RenderView* render_view, |
| 17 WebKit::WebFrame* frame, |
| 18 const WebKit::WebPluginParams& params); |
| 19 |
| 20 private: |
| 21 MissingPlugin(content::RenderView* render_view, |
| 22 WebKit::WebFrame* frame, |
| 23 const WebKit::WebPluginParams& params, |
| 24 const std::string& html_data); |
| 25 virtual ~MissingPlugin(); |
| 26 |
| 27 // WebViewPlugin::Delegate methods: |
| 28 virtual void BindWebFrame(WebKit::WebFrame* frame) OVERRIDE; |
| 29 virtual void ShowContextMenu(const WebKit::WebMouseEvent&) OVERRIDE; |
| 30 |
| 31 // content::RenderViewObserver methods: |
| 32 virtual void ContextMenuAction(unsigned id) OVERRIDE; |
| 33 |
| 34 void HideCallback(const CppArgumentList& args, CppVariant* result); |
| 35 |
| 36 WebKit::WebString mime_type_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(MissingPlugin); |
| 39 }; |
| 40 |
| 41 #endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ |
OLD | NEW |