| 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_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void DidReceiveManualResponse(const GURL& url, | 90 virtual void DidReceiveManualResponse(const GURL& url, |
| 91 const std::string& mime_type, | 91 const std::string& mime_type, |
| 92 const std::string& headers, | 92 const std::string& headers, |
| 93 uint32 expected_length, | 93 uint32 expected_length, |
| 94 uint32 last_modified); | 94 uint32 last_modified); |
| 95 virtual void DidReceiveManualData(const char* buffer, int length); | 95 virtual void DidReceiveManualData(const char* buffer, int length); |
| 96 virtual void DidFinishManualLoading(); | 96 virtual void DidFinishManualLoading(); |
| 97 virtual void DidManualLoadFail(); | 97 virtual void DidManualLoadFail(); |
| 98 virtual void InstallMissingPlugin(); | 98 virtual void InstallMissingPlugin(); |
| 99 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( | 99 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( |
| 100 int resource_id, | 100 unsigned long resource_id, |
| 101 const GURL& url, | 101 const GURL& url, |
| 102 bool notify_needed, | 102 bool notify_needed, |
| 103 intptr_t notify_data, | 103 intptr_t notify_data, |
| 104 intptr_t stream); | 104 intptr_t stream); |
| 105 // End of WebPluginDelegate implementation. | 105 // End of WebPluginDelegate implementation. |
| 106 | 106 |
| 107 bool IsWindowless() const { return windowless_ ; } | 107 bool IsWindowless() const { return windowless_ ; } |
| 108 gfx::Rect GetRect() const { return window_rect_; } | 108 gfx::Rect GetRect() const { return window_rect_; } |
| 109 gfx::Rect GetClipRect() const { return clip_rect_; } | 109 gfx::Rect GetClipRect() const { return clip_rect_; } |
| 110 | 110 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // preserved. | 325 // preserved. |
| 326 void UpdateDummyWindowBoundsWithOffset(int x_offset, int y_offset, | 326 void UpdateDummyWindowBoundsWithOffset(int x_offset, int y_offset, |
| 327 int new_width, int new_height); | 327 int new_width, int new_height); |
| 328 | 328 |
| 329 // Runnable Method Factory used to drip null events into the plugin. | 329 // Runnable Method Factory used to drip null events into the plugin. |
| 330 ScopedRunnableMethodFactory<WebPluginDelegateImpl> null_event_factory_; | 330 ScopedRunnableMethodFactory<WebPluginDelegateImpl> null_event_factory_; |
| 331 | 331 |
| 332 // we've shut down the plugin, but can't delete ourselves until the last | 332 // we've shut down the plugin, but can't delete ourselves until the last |
| 333 // idle event comes in. | 333 // idle event comes in. |
| 334 bool waiting_to_die_; | 334 bool waiting_to_die_; |
| 335 | 335 |
| 336 // The most recently seen offset between global and browser-window-local | 336 // The most recently seen offset between global and browser-window-local |
| 337 // coordinates. We use this to keep the placeholder Carbon WindowRef's origin | 337 // coordinates. We use this to keep the placeholder Carbon WindowRef's origin |
| 338 // in sync with the actual browser window, without having to pass that | 338 // in sync with the actual browser window, without having to pass that |
| 339 // geometry over IPC. | 339 // geometry over IPC. |
| 340 int last_window_x_offset_; | 340 int last_window_x_offset_; |
| 341 int last_window_y_offset_; | 341 int last_window_y_offset_; |
| 342 | 342 |
| 343 // Last mouse position within the plugin's rect (used for null events). | 343 // Last mouse position within the plugin's rect (used for null events). |
| 344 int last_mouse_x_; | 344 int last_mouse_x_; |
| 345 int last_mouse_y_; | 345 int last_mouse_y_; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 382 ScopedRunnableMethodFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
| 383 #endif | 383 #endif |
| 384 | 384 |
| 385 // Holds the current cursor set by the windowless plugin. | 385 // Holds the current cursor set by the windowless plugin. |
| 386 WebCursor current_windowless_cursor_; | 386 WebCursor current_windowless_cursor_; |
| 387 | 387 |
| 388 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 388 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ | 391 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |