| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Widget methods: | 59 // Widget methods: |
| 60 virtual void setFrameRect(const WebCore::IntRect& rect); | 60 virtual void setFrameRect(const WebCore::IntRect& rect); |
| 61 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect); | 61 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect); |
| 62 virtual void invalidateRect(const WebCore::IntRect&); | 62 virtual void invalidateRect(const WebCore::IntRect&); |
| 63 virtual void setFocus(); | 63 virtual void setFocus(); |
| 64 virtual void show(); | 64 virtual void show(); |
| 65 virtual void hide(); | 65 virtual void hide(); |
| 66 virtual void handleEvent(WebCore::Event* event); | 66 virtual void handleEvent(WebCore::Event* event); |
| 67 virtual void frameRectsChanged(); | 67 virtual void frameRectsChanged(); |
| 68 virtual void setParentVisible(bool visible); | 68 virtual void setParentVisible(bool visible); |
| 69 virtual void setParent(WebCore::ScrollView* view); | |
| 70 | 69 |
| 71 #if USE(JSC) | 70 #if USE(JSC) |
| 72 virtual bool isPluginView() const; | 71 virtual bool isPluginView() const; |
| 73 #endif | 72 #endif |
| 74 | 73 |
| 75 // Returns window-relative rectangles that should clip this widget. | 74 // Returns window-relative rectangles that should clip this widget. |
| 76 // Only rects that intersect the given bounds are relevant. | 75 // Only rects that intersect the given bounds are relevant. |
| 77 // Use this to implement iframe shim behavior. | 76 // Use this to implement iframe shim behavior. |
| 78 // | 77 // |
| 79 // TODO(tulrich): add this method to WebCore/platform/Widget.h so it | 78 // TODO(tulrich): add this method to WebCore/platform/Widget.h so it |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 const char* target, unsigned int len, | 305 const char* target, unsigned int len, |
| 307 const char* buf, bool is_file_data, | 306 const char* buf, bool is_file_data, |
| 308 bool notify, const char* url, | 307 bool notify, const char* url, |
| 309 intptr_t notify_data, bool popups_allowed, | 308 intptr_t notify_data, bool popups_allowed, |
| 310 bool use_plugin_src_as_referrer); | 309 bool use_plugin_src_as_referrer); |
| 311 | 310 |
| 312 // Tears down the existing plugin instance and creates a new plugin instance | 311 // Tears down the existing plugin instance and creates a new plugin instance |
| 313 // to handle the response identified by the response_handle parameter. | 312 // to handle the response identified by the response_handle parameter. |
| 314 bool ReinitializePluginForResponse(WebCore::ResourceHandle* response_handle); | 313 bool ReinitializePluginForResponse(WebCore::ResourceHandle* response_handle); |
| 315 | 314 |
| 315 // Notifies us that the visibility of the plugin has changed. |
| 316 void UpdateVisibility(); |
| 317 |
| 316 // Helper functions to convert an array of names/values to a vector. | 318 // Helper functions to convert an array of names/values to a vector. |
| 317 static void ArrayToVector(int total_values, char** values, | 319 static void ArrayToVector(int total_values, char** values, |
| 318 std::vector<std::string>* value_vector); | 320 std::vector<std::string>* value_vector); |
| 319 | 321 |
| 320 struct ClientInfo { | 322 struct ClientInfo { |
| 321 int id; | 323 int id; |
| 322 WebPluginResourceClient* client; | 324 WebPluginResourceClient* client; |
| 323 WebCore::ResourceRequest request; | 325 WebCore::ResourceRequest request; |
| 324 RefPtr<WebCore::ResourceHandle> handle; | 326 RefPtr<WebCore::ResourceHandle> handle; |
| 325 }; | 327 }; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 356 // Holds the list of argument names passed to the plugin. | 358 // Holds the list of argument names passed to the plugin. |
| 357 std::vector<std::string> arg_names_; | 359 std::vector<std::string> arg_names_; |
| 358 | 360 |
| 359 // Holds the list of argument values passed to the plugin. | 361 // Holds the list of argument values passed to the plugin. |
| 360 std::vector<std::string> arg_values_; | 362 std::vector<std::string> arg_values_; |
| 361 | 363 |
| 362 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 364 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 363 }; | 365 }; |
| 364 | 366 |
| 365 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 367 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |