| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This interface is used by RenderView to talk to the pepper plugin delegate. | 5 // This interface is used by RenderView to talk to the pepper plugin delegate. |
| 6 #ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 6 #ifndef CONTENT_RENDERER_PEPPER_HELPER_H |
| 7 #define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 7 #define CONTENT_RENDERER_PEPPER_HELPER_H |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "ui/base/ime/text_input_type.h" | 17 #include "ui/base/ime/text_input_type.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 33 namespace WebKit { | 33 namespace WebKit { |
| 34 struct WebCompositionUnderline; | 34 struct WebCompositionUnderline; |
| 35 struct WebPluginParams; | 35 struct WebPluginParams; |
| 36 class WebPlugin; | 36 class WebPlugin; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 class PepperPluginInstanceImpl; | 40 class PepperPluginInstanceImpl; |
| 41 struct WebPluginInfo; | 41 struct WebPluginInfo; |
| 42 | 42 |
| 43 class CONTENT_EXPORT RenderViewPepperHelper { | 43 class CONTENT_EXPORT PepperHelper { |
| 44 public: | 44 public: |
| 45 RenderViewPepperHelper() {} | 45 PepperHelper() {} |
| 46 virtual ~RenderViewPepperHelper(); | 46 virtual ~PepperHelper(); |
| 47 | 47 |
| 48 virtual WebKit::WebPlugin* CreatePepperWebPlugin( | 48 virtual WebKit::WebPlugin* CreatePepperWebPlugin( |
| 49 const WebPluginInfo& webplugin_info, | 49 const WebPluginInfo& webplugin_info, |
| 50 const WebKit::WebPluginParams& params); | 50 const WebKit::WebPluginParams& params); |
| 51 | 51 |
| 52 // Called by RenderView to implement the corresponding function in its base | 52 // Called by RenderView to implement the corresponding function in its base |
| 53 // class RenderWidget (see that for more). | 53 // class RenderWidget (see that for more). |
| 54 virtual PepperPluginInstanceImpl* GetBitmapForOptimizedPluginPaint( | 54 virtual PepperPluginInstanceImpl* GetBitmapForOptimizedPluginPaint( |
| 55 const gfx::Rect& paint_bounds, | 55 const gfx::Rect& paint_bounds, |
| 56 TransportDIB** dib, | 56 TransportDIB** dib, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 85 const string16& text, | 85 const string16& text, |
| 86 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 86 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 87 int selection_start, | 87 int selection_start, |
| 88 int selection_end) {} | 88 int selection_end) {} |
| 89 virtual void OnImeConfirmComposition(const string16& text) {} | 89 virtual void OnImeConfirmComposition(const string16& text) {} |
| 90 | 90 |
| 91 // Notification that a mouse event has arrived at the render view. | 91 // Notification that a mouse event has arrived at the render view. |
| 92 virtual void WillHandleMouseEvent() {} | 92 virtual void WillHandleMouseEvent() {} |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper); | 95 DISALLOW_COPY_AND_ASSIGN(PepperHelper); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace content | 98 } // namespace content |
| 99 | 99 |
| 100 #endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 100 #endif // CONTENT_RENDERER_PEPPER_HELPER_H |
| OLD | NEW |