| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | 7 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 gfx::PluginWindowHandle containing_view, | 95 gfx::PluginWindowHandle containing_view, |
| 96 NPAPI::PluginInstance *instance) | 96 NPAPI::PluginInstance *instance) |
| 97 : windowless_needs_set_window_(true), | 97 : windowless_needs_set_window_(true), |
| 98 // all Mac plugins are "windowless" in the Windows/X11 sense | 98 // all Mac plugins are "windowless" in the Windows/X11 sense |
| 99 windowless_(true), | 99 windowless_(true), |
| 100 plugin_(NULL), | 100 plugin_(NULL), |
| 101 instance_(instance), | 101 instance_(instance), |
| 102 parent_(containing_view), | 102 parent_(containing_view), |
| 103 qd_world_(0), | 103 qd_world_(0), |
| 104 quirks_(0), | 104 quirks_(0), |
| 105 null_event_factory_(this), |
| 106 last_mouse_x_(0), |
| 107 last_mouse_y_(0), |
| 105 handle_event_depth_(0), | 108 handle_event_depth_(0), |
| 106 user_gesture_message_posted_(this), | 109 user_gesture_message_posted_(this), |
| 107 user_gesture_msg_factory_(this), | 110 user_gesture_msg_factory_(this) { |
| 108 null_event_factory_(this), | |
| 109 last_mouse_x_(0), | |
| 110 last_mouse_y_(0) { | |
| 111 memset(&window_, 0, sizeof(window_)); | 111 memset(&window_, 0, sizeof(window_)); |
| 112 #ifndef NP_NO_QUICKDRAW | 112 #ifndef NP_NO_QUICKDRAW |
| 113 memset(&qd_port_, 0, sizeof(qd_port_)); | 113 memset(&qd_port_, 0, sizeof(qd_port_)); |
| 114 #endif | 114 #endif |
| 115 } | 115 } |
| 116 | 116 |
| 117 WebPluginDelegateImpl::~WebPluginDelegateImpl() { | 117 WebPluginDelegateImpl::~WebPluginDelegateImpl() { |
| 118 #ifndef NP_NO_QUICKDRAW | 118 #ifndef NP_NO_QUICKDRAW |
| 119 if (qd_port_.port) { | 119 if (qd_port_.port) { |
| 120 DisposeGWorld(qd_port_.port); | 120 DisposeGWorld(qd_port_.port); |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 // so as not to spam the renderer with an unchanging image. | 698 // so as not to spam the renderer with an unchanging image. |
| 699 if (instance_->drawing_model() == NPDrawingModelQuickDraw) | 699 if (instance_->drawing_model() == NPDrawingModelQuickDraw) |
| 700 instance()->webplugin()->Invalidate(); | 700 instance()->webplugin()->Invalidate(); |
| 701 #endif | 701 #endif |
| 702 | 702 |
| 703 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 703 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
| 704 null_event_factory_.NewRunnableMethod( | 704 null_event_factory_.NewRunnableMethod( |
| 705 &WebPluginDelegateImpl::OnNullEvent), | 705 &WebPluginDelegateImpl::OnNullEvent), |
| 706 kPluginIdleThrottleDelayMs); | 706 kPluginIdleThrottleDelayMs); |
| 707 } | 707 } |
| OLD | NEW |