Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl_mac.mm

Issue 2752009: Fix media player painting bug. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #import <QuartzCore/QuartzCore.h> 6 #import <QuartzCore/QuartzCore.h>
7 7
8 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 8 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 surface_(NULL), 260 surface_(NULL),
261 renderer_(nil), 261 renderer_(nil),
262 plugin_has_focus_(false), 262 plugin_has_focus_(false),
263 has_webkit_focus_(false), 263 has_webkit_focus_(false),
264 containing_view_has_focus_(false), 264 containing_view_has_focus_(false),
265 containing_window_has_focus_(false), 265 containing_window_has_focus_(false),
266 initial_window_focus_(false), 266 initial_window_focus_(false),
267 container_is_visible_(false), 267 container_is_visible_(false),
268 have_called_set_window_(false), 268 have_called_set_window_(false),
269 external_drag_tracker_(new ExternalDragTracker()), 269 external_drag_tracker_(new ExternalDragTracker()),
270 handle_event_depth_(0) { 270 handle_event_depth_(0),
271 first_set_window_call_(true) {
271 memset(&window_, 0, sizeof(window_)); 272 memset(&window_, 0, sizeof(window_));
272 #ifndef NP_NO_CARBON 273 #ifndef NP_NO_CARBON
273 memset(&np_cg_context_, 0, sizeof(np_cg_context_)); 274 memset(&np_cg_context_, 0, sizeof(np_cg_context_));
274 #endif 275 #endif
275 #ifndef NP_NO_QUICKDRAW 276 #ifndef NP_NO_QUICKDRAW
276 memset(&qd_port_, 0, sizeof(qd_port_)); 277 memset(&qd_port_, 0, sizeof(qd_port_));
277 #endif 278 #endif
278 instance->set_windowless(true); 279 instance->set_windowless(true);
279 } 280 }
280 281
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 return; 1140 return;
1140 } 1141 }
1141 1142
1142 qd_manager_->SetFastPathEnabled(enabled); 1143 qd_manager_->SetFastPathEnabled(enabled);
1143 qd_port_.port = qd_manager_->port(); 1144 qd_port_.port = qd_manager_->port();
1144 WindowlessSetWindow(); 1145 WindowlessSetWindow();
1145 // Send a paint event so that the new buffer gets updated immediately. 1146 // Send a paint event so that the new buffer gets updated immediately.
1146 WindowlessPaint(buffer_context_, clip_rect_); 1147 WindowlessPaint(buffer_context_, clip_rect_);
1147 } 1148 }
1148 #endif // !NP_NO_QUICKDRAW 1149 #endif // !NP_NO_QUICKDRAW
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698