OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool load_manually, const std::string& mime_type, int arg_count, | 81 bool load_manually, const std::string& mime_type, int arg_count, |
82 char** arg_names, char** arg_values); | 82 char** arg_names, char** arg_values); |
83 | 83 |
84 // WebKit::WebPlugin methods: | 84 // WebKit::WebPlugin methods: |
85 virtual void destroy(); | 85 virtual void destroy(); |
86 virtual NPObject* scriptableObject(); | 86 virtual NPObject* scriptableObject(); |
87 virtual void paint( | 87 virtual void paint( |
88 WebKit::WebCanvas* canvas, const WebKit::WebRect& paint_rect); | 88 WebKit::WebCanvas* canvas, const WebKit::WebRect& paint_rect); |
89 virtual void updateGeometry( | 89 virtual void updateGeometry( |
90 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, | 90 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, |
91 const WebKit::WebVector<WebKit::WebRect>& cut_outs); | 91 const WebKit::WebVector<WebKit::WebRect>& cut_outs, bool is_visible); |
92 virtual void updateFocus(bool focused); | 92 virtual void updateFocus(bool focused); |
93 virtual void updateVisibility(bool visible); | 93 virtual void updateVisibility(bool visible); |
94 virtual bool acceptsInputEvents(); | 94 virtual bool acceptsInputEvents(); |
95 virtual bool handleInputEvent( | 95 virtual bool handleInputEvent( |
96 const WebKit::WebInputEvent& event, WebKit::WebCursorInfo& cursor_info); | 96 const WebKit::WebInputEvent& event, WebKit::WebCursorInfo& cursor_info); |
97 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); | 97 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); |
98 virtual void didReceiveData(const char* data, int data_length); | 98 virtual void didReceiveData(const char* data, int data_length); |
99 virtual void didFinishLoading(); | 99 virtual void didFinishLoading(); |
100 virtual void didFailLoading(const WebKit::WebURLError& error); | 100 virtual void didFailLoading(const WebKit::WebURLError& error); |
101 | 101 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 287 |
288 // Holds the list of argument values passed to the plugin. | 288 // Holds the list of argument values passed to the plugin. |
289 std::vector<std::string> arg_values_; | 289 std::vector<std::string> arg_values_; |
290 | 290 |
291 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 291 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 293 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
294 }; | 294 }; |
295 | 295 |
296 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 296 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
OLD | NEW |