| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // blink::WebPlugin methods: | 69 // blink::WebPlugin methods: |
| 70 virtual bool initialize( | 70 virtual bool initialize( |
| 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& window_rect, |
| 80 const blink::WebVector<blink::WebRect>& cut_outs, bool is_visible); | 80 const blink::WebRect& clip_rect, |
| 81 const blink::WebRect& unobscured_rect, |
| 82 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 83 bool is_visible); |
| 81 virtual void updateFocus(bool focused, blink::WebFocusType focus_type); | 84 virtual void updateFocus(bool focused, blink::WebFocusType focus_type); |
| 82 virtual void updateVisibility(bool visible); | 85 virtual void updateVisibility(bool visible); |
| 83 virtual bool acceptsInputEvents(); | 86 virtual bool acceptsInputEvents(); |
| 84 virtual bool handleInputEvent( | 87 virtual bool handleInputEvent( |
| 85 const blink::WebInputEvent& event, blink::WebCursorInfo& cursor_info); | 88 const blink::WebInputEvent& event, blink::WebCursorInfo& cursor_info); |
| 86 virtual void didReceiveResponse(const blink::WebURLResponse& response); | 89 virtual void didReceiveResponse(const blink::WebURLResponse& response); |
| 87 virtual void didReceiveData(const char* data, int data_length); | 90 virtual void didReceiveData(const char* data, int data_length); |
| 88 virtual void didFinishLoading(); | 91 virtual void didFinishLoading(); |
| 89 virtual void didFailLoading(const blink::WebURLError& error); | 92 virtual void didFailLoading(const blink::WebURLError& error); |
| 90 virtual void didFinishLoadingFrameRequest( | 93 virtual void didFinishLoadingFrameRequest( |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 LoaderClient loader_client_; | 361 LoaderClient loader_client_; |
| 359 | 362 |
| 360 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 363 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
| 361 | 364 |
| 362 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 365 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 363 }; | 366 }; |
| 364 | 367 |
| 365 } // namespace content | 368 } // namespace content |
| 366 | 369 |
| 367 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 370 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |