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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void paint(blink::WebCanvas* canvas, | 76 void paint(blink::WebCanvas* canvas, |
77 const blink::WebRect& paint_rect) override; | 77 const blink::WebRect& paint_rect) override; |
78 void updateGeometry(const blink::WebRect& window_rect, | 78 void updateGeometry(const blink::WebRect& window_rect, |
79 const blink::WebRect& clip_rect, | 79 const blink::WebRect& clip_rect, |
80 const blink::WebRect& unobscured_rect, | 80 const blink::WebRect& unobscured_rect, |
81 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 81 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
82 bool is_visible) override; | 82 bool is_visible) override; |
83 void updateFocus(bool focused, blink::WebFocusType focus_type) override; | 83 void updateFocus(bool focused, blink::WebFocusType focus_type) override; |
84 void updateVisibility(bool visible) override; | 84 void updateVisibility(bool visible) override; |
85 bool acceptsInputEvents() override; | 85 bool acceptsInputEvents() override; |
86 bool handleInputEvent(const blink::WebInputEvent& event, | 86 blink::WebInputEventResult handleInputEvent( |
87 blink::WebCursorInfo& cursor_info) override; | 87 const blink::WebInputEvent& event, |
| 88 blink::WebCursorInfo& cursor_info) override; |
88 void didReceiveResponse(const blink::WebURLResponse& response) override; | 89 void didReceiveResponse(const blink::WebURLResponse& response) override; |
89 void didReceiveData(const char* data, int data_length) override; | 90 void didReceiveData(const char* data, int data_length) override; |
90 void didFinishLoading() override; | 91 void didFinishLoading() override; |
91 void didFailLoading(const blink::WebURLError& error) override; | 92 void didFailLoading(const blink::WebURLError& error) override; |
92 void didFinishLoadingFrameRequest(const blink::WebURL& url, | 93 void didFinishLoadingFrameRequest(const blink::WebURL& url, |
93 void* notify_data) override; | 94 void* notify_data) override; |
94 void didFailLoadingFrameRequest(const blink::WebURL& url, | 95 void didFailLoadingFrameRequest(const blink::WebURL& url, |
95 void* notify_data, | 96 void* notify_data, |
96 const blink::WebURLError& error) override; | 97 const blink::WebURLError& error) override; |
97 bool isPlaceholder() override; | 98 bool isPlaceholder() override; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 LoaderClient loader_client_; | 360 LoaderClient loader_client_; |
360 | 361 |
361 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 362 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
362 | 363 |
363 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 364 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
364 }; | 365 }; |
365 | 366 |
366 } // namespace content | 367 } // namespace content |
367 | 368 |
368 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ | 369 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |