| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 63 virtual bool hasSelection() const; |
| 64 virtual WebKit::WebString selectionAsText() const; | 64 virtual WebKit::WebString selectionAsText() const; |
| 65 virtual WebKit::WebString selectionAsMarkup() const; | 65 virtual WebKit::WebString selectionAsMarkup() const; |
| 66 virtual void setZoomFactor(float scale, bool text_only); | 66 virtual void setZoomFactor(float scale, bool text_only); |
| 67 #if defined(WEBPLUGIN_FIND_HAS_RETURN_TYPE) | |
| 68 virtual bool startFind(const WebKit::WebString& search_text, | 67 virtual bool startFind(const WebKit::WebString& search_text, |
| 69 bool case_sensitive, | 68 bool case_sensitive, |
| 70 int identifier); | 69 int identifier); |
| 71 #else | |
| 72 virtual bool supportsFind(); | |
| 73 virtual void startFind(const WebKit::WebString& search_text, | |
| 74 bool case_sensitive, | |
| 75 int identifier); | |
| 76 #endif | |
| 77 virtual void selectFindResult(bool forward); | 70 virtual void selectFindResult(bool forward); |
| 78 virtual void stopFind(); | 71 virtual void stopFind(); |
| 79 | 72 |
| 80 struct InitData { | 73 struct InitData { |
| 81 scoped_refptr<PluginModule> module; | 74 scoped_refptr<PluginModule> module; |
| 82 base::WeakPtr<PluginDelegate> delegate; | 75 base::WeakPtr<PluginDelegate> delegate; |
| 83 std::vector<std::string> arg_names; | 76 std::vector<std::string> arg_names; |
| 84 std::vector<std::string> arg_values; | 77 std::vector<std::string> arg_values; |
| 85 }; | 78 }; |
| 86 | 79 |
| 87 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 80 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 88 // True if the instance represents the entire document in a frame instead of | 81 // True if the instance represents the entire document in a frame instead of |
| 89 // being an embedded resource. | 82 // being an embedded resource. |
| 90 bool full_frame_; | 83 bool full_frame_; |
| 91 scoped_refptr<PluginInstance> instance_; | 84 scoped_refptr<PluginInstance> instance_; |
| 92 scoped_refptr<URLLoader> document_loader_; | 85 scoped_refptr<URLLoader> document_loader_; |
| 93 gfx::Rect plugin_rect_; | 86 gfx::Rect plugin_rect_; |
| 94 | 87 |
| 95 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 88 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 96 }; | 89 }; |
| 97 | 90 |
| 98 } // namespace pepper | 91 } // namespace pepper |
| 99 | 92 |
| 100 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 93 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |