| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 int identifier); | 104 int identifier); |
| 105 virtual void selectFindResult(bool forward); | 105 virtual void selectFindResult(bool forward); |
| 106 virtual void stopFind(); | 106 virtual void stopFind(); |
| 107 | 107 |
| 108 // WebPlugin implementation: | 108 // WebPlugin implementation: |
| 109 virtual void SetWindow(gfx::PluginWindowHandle window); | 109 virtual void SetWindow(gfx::PluginWindowHandle window); |
| 110 virtual void SetAcceptsInputEvents(bool accepts); | 110 virtual void SetAcceptsInputEvents(bool accepts); |
| 111 virtual void WillDestroyWindow(gfx::PluginWindowHandle window); | 111 virtual void WillDestroyWindow(gfx::PluginWindowHandle window); |
| 112 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 113 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } | 113 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } |
| 114 void ReparentPluginWindow(HWND window, HWND parent) { } |
| 114 #endif | 115 #endif |
| 115 virtual void CancelResource(unsigned long id); | 116 virtual void CancelResource(unsigned long id); |
| 116 virtual void Invalidate(); | 117 virtual void Invalidate(); |
| 117 virtual void InvalidateRect(const gfx::Rect& rect); | 118 virtual void InvalidateRect(const gfx::Rect& rect); |
| 118 virtual NPObject* GetWindowScriptNPObject(); | 119 virtual NPObject* GetWindowScriptNPObject(); |
| 119 virtual NPObject* GetPluginElement(); | 120 virtual NPObject* GetPluginElement(); |
| 120 virtual void SetCookie(const GURL& url, | 121 virtual void SetCookie(const GURL& url, |
| 121 const GURL& first_party_for_cookies, | 122 const GURL& first_party_for_cookies, |
| 122 const std::string& cookie); | 123 const std::string& cookie); |
| 123 virtual std::string GetCookies(const GURL& url, | 124 virtual std::string GetCookies(const GURL& url, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 312 |
| 312 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 313 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
| 313 | 314 |
| 314 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 315 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 315 }; | 316 }; |
| 316 | 317 |
| 317 } // namespace npapi | 318 } // namespace npapi |
| 318 } // namespace webkit | 319 } // namespace webkit |
| 319 | 320 |
| 320 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 321 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |