| 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_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const WebKit::WebURLError& error); | 90 const WebKit::WebURLError& error); |
| 91 virtual bool supportsPaginatedPrint(); | 91 virtual bool supportsPaginatedPrint(); |
| 92 virtual int printBegin(const WebKit::WebRect& printable_area, | 92 virtual int printBegin(const WebKit::WebRect& printable_area, |
| 93 int printer_dpi); | 93 int printer_dpi); |
| 94 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); | 94 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); |
| 95 virtual void printEnd(); | 95 virtual void printEnd(); |
| 96 virtual bool hasSelection() const; | 96 virtual bool hasSelection() const; |
| 97 virtual WebKit::WebString selectionAsText() const; | 97 virtual WebKit::WebString selectionAsText() const; |
| 98 virtual WebKit::WebString selectionAsMarkup() const; | 98 virtual WebKit::WebString selectionAsMarkup() const; |
| 99 virtual void setZoomFactor(float scale, bool text_only); | 99 virtual void setZoomFactor(float scale, bool text_only); |
| 100 #if defined(WEBPLUGIN_FIND_HAS_RETURN_TYPE) | |
| 101 virtual bool startFind(const WebKit::WebString& search_text, | 100 virtual bool startFind(const WebKit::WebString& search_text, |
| 102 bool case_sensitive, | 101 bool case_sensitive, |
| 103 int identifier); | 102 int identifier); |
| 104 #else | |
| 105 virtual bool supportsFind(); | |
| 106 virtual void startFind(const WebKit::WebString& search_text, | |
| 107 bool case_sensitive, | |
| 108 int identifier); | |
| 109 #endif | |
| 110 virtual void selectFindResult(bool forward); | 103 virtual void selectFindResult(bool forward); |
| 111 virtual void stopFind(); | 104 virtual void stopFind(); |
| 112 | 105 |
| 113 // WebPlugin implementation: | 106 // WebPlugin implementation: |
| 114 void SetWindow(gfx::PluginWindowHandle window); | 107 void SetWindow(gfx::PluginWindowHandle window); |
| 115 virtual void SetAcceptsInputEvents(bool accepts) { | 108 virtual void SetAcceptsInputEvents(bool accepts) { |
| 116 accepts_input_events_ = accepts; | 109 accepts_input_events_ = accepts; |
| 117 } | 110 } |
| 118 void WillDestroyWindow(gfx::PluginWindowHandle window); | 111 void WillDestroyWindow(gfx::PluginWindowHandle window); |
| 119 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 std::vector<std::string> arg_values_; | 323 std::vector<std::string> arg_values_; |
| 331 | 324 |
| 332 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 325 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
| 333 | 326 |
| 334 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 327 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 335 }; | 328 }; |
| 336 | 329 |
| 337 } // namespace webkit_glue | 330 } // namespace webkit_glue |
| 338 | 331 |
| 339 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 332 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |