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 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 blink::WebPluginContainer* container); | 71 blink::WebPluginContainer* container); |
72 virtual void destroy(); | 72 virtual void destroy(); |
73 virtual NPObject* scriptableObject(); | 73 virtual NPObject* scriptableObject(); |
74 virtual struct _NPP* pluginNPP(); | 74 virtual struct _NPP* pluginNPP(); |
75 virtual bool getFormValue(blink::WebString& value); | 75 virtual bool getFormValue(blink::WebString& value); |
76 virtual void paint( | 76 virtual void paint( |
77 blink::WebCanvas* canvas, const blink::WebRect& paint_rect); | 77 blink::WebCanvas* canvas, const blink::WebRect& paint_rect); |
78 virtual void updateGeometry( | 78 virtual void updateGeometry( |
79 const blink::WebRect& frame_rect, const blink::WebRect& clip_rect, | 79 const blink::WebRect& frame_rect, const blink::WebRect& clip_rect, |
80 const blink::WebVector<blink::WebRect>& cut_outs, bool is_visible); | 80 const blink::WebVector<blink::WebRect>& cut_outs, bool is_visible); |
81 virtual void updateFocus(bool focused); | 81 virtual void updateFocus(bool focused, blink::WebFocusType focus_type); |
82 virtual void updateVisibility(bool visible); | 82 virtual void updateVisibility(bool visible); |
83 virtual bool acceptsInputEvents(); | 83 virtual bool acceptsInputEvents(); |
84 virtual bool handleInputEvent( | 84 virtual bool handleInputEvent( |
85 const blink::WebInputEvent& event, blink::WebCursorInfo& cursor_info); | 85 const blink::WebInputEvent& event, blink::WebCursorInfo& cursor_info); |
86 virtual void didReceiveResponse(const blink::WebURLResponse& response); | 86 virtual void didReceiveResponse(const blink::WebURLResponse& response); |
87 virtual void didReceiveData(const char* data, int data_length); | 87 virtual void didReceiveData(const char* data, int data_length); |
88 virtual void didFinishLoading(); | 88 virtual void didFinishLoading(); |
89 virtual void didFailLoading(const blink::WebURLError& error); | 89 virtual void didFailLoading(const blink::WebURLError& error); |
90 virtual void didFinishLoadingFrameRequest( | 90 virtual void didFinishLoadingFrameRequest( |
91 const blink::WebURL& url, void* notify_data); | 91 const blink::WebURL& url, void* notify_data); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 LoaderClient loader_client_; | 358 LoaderClient loader_client_; |
359 | 359 |
360 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 360 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
361 | 361 |
362 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 362 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
363 }; | 363 }; |
364 | 364 |
365 } // namespace content | 365 } // namespace content |
366 | 366 |
367 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 367 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |