| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 WebKit::WebCursorInfo& cursor_info); | 53 WebKit::WebCursorInfo& cursor_info); |
| 54 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); | 54 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); |
| 55 virtual void didReceiveData(const char* data, int data_length); | 55 virtual void didReceiveData(const char* data, int data_length); |
| 56 virtual void didFinishLoading(); | 56 virtual void didFinishLoading(); |
| 57 virtual void didFailLoading(const WebKit::WebURLError&); | 57 virtual void didFailLoading(const WebKit::WebURLError&); |
| 58 virtual void didFinishLoadingFrameRequest(const WebKit::WebURL& url, | 58 virtual void didFinishLoadingFrameRequest(const WebKit::WebURL& url, |
| 59 void* notify_data); | 59 void* notify_data); |
| 60 virtual void didFailLoadingFrameRequest(const WebKit::WebURL& url, | 60 virtual void didFailLoadingFrameRequest(const WebKit::WebURL& url, |
| 61 void* notify_data, | 61 void* notify_data, |
| 62 const WebKit::WebURLError& error); | 62 const WebKit::WebURLError& error); |
| 63 virtual bool hasSelection() const; |
| 64 virtual WebKit::WebString selectionAsText() const; |
| 65 virtual WebKit::WebString selectionAsMarkup() const; |
| 66 virtual void setZoomFactor(float scale, bool text_only); |
| 67 virtual bool supportsFind(); |
| 68 virtual void startFind(const WebKit::WebString& search_text, |
| 69 bool case_sensitive, |
| 70 int identifier); |
| 71 virtual void selectFindResult(bool forward); |
| 72 virtual void stopFind(); |
| 63 | 73 |
| 64 struct InitData { | 74 struct InitData { |
| 65 scoped_refptr<PluginModule> module; | 75 scoped_refptr<PluginModule> module; |
| 66 base::WeakPtr<PluginDelegate> delegate; | 76 base::WeakPtr<PluginDelegate> delegate; |
| 67 std::vector<std::string> arg_names; | 77 std::vector<std::string> arg_names; |
| 68 std::vector<std::string> arg_values; | 78 std::vector<std::string> arg_values; |
| 69 }; | 79 }; |
| 70 | 80 |
| 71 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 81 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 72 // True if the instance represents the entire document in a frame instead of | 82 // True if the instance represents the entire document in a frame instead of |
| 73 // being an embedded resource. | 83 // being an embedded resource. |
| 74 bool full_frame_; | 84 bool full_frame_; |
| 75 scoped_refptr<PluginInstance> instance_; | 85 scoped_refptr<PluginInstance> instance_; |
| 76 scoped_refptr<URLLoader> document_loader_; | 86 scoped_refptr<URLLoader> document_loader_; |
| 77 gfx::Rect plugin_rect_; | 87 gfx::Rect plugin_rect_; |
| 78 | 88 |
| 79 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 89 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 80 }; | 90 }; |
| 81 | 91 |
| 82 } // namespace pepper | 92 } // namespace pepper |
| 83 | 93 |
| 84 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 94 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |