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

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl_gtk.cc

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 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 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 5 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // We only ever use ws_info as an NPSetWindowCallbackStruct. 77 // We only ever use ws_info as an NPSetWindowCallbackStruct.
78 delete static_cast<NPSetWindowCallbackStruct*>(window_.ws_info); 78 delete static_cast<NPSetWindowCallbackStruct*>(window_.ws_info);
79 } 79 }
80 80
81 if (pixmap_) { 81 if (pixmap_) {
82 g_object_unref(pixmap_); 82 g_object_unref(pixmap_);
83 pixmap_ = NULL; 83 pixmap_ = NULL;
84 } 84 }
85 } 85 }
86 86
87 void WebPluginDelegateImpl::PlatformInitialize(WebPlugin* plugin) { 87 void WebPluginDelegateImpl::PlatformInitialize() {
88 gfx::PluginWindowHandle handle = 88 gfx::PluginWindowHandle handle =
89 windowless_ ? 0 : gtk_plug_get_id(GTK_PLUG(plug_)); 89 windowless_ ? 0 : gtk_plug_get_id(GTK_PLUG(plug_));
90 plugin->SetWindow(handle); 90 plugin_->SetWindow(handle);
91 } 91 }
92 92
93 void WebPluginDelegateImpl::PlatformDestroyInstance() { 93 void WebPluginDelegateImpl::PlatformDestroyInstance() {
94 // Nothing to do here. 94 // Nothing to do here.
95 } 95 }
96 96
97 void WebPluginDelegateImpl::PluginDestroyed() { 97 void WebPluginDelegateImpl::PluginDestroyed() {
98 delete this; 98 delete this;
99 } 99 }
100 100
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 if (event->event == WM_MOUSEMOVE) { 700 if (event->event == WM_MOUSEMOVE) {
701 // Snag a reference to the current cursor ASAP in case the plugin modified 701 // Snag a reference to the current cursor ASAP in case the plugin modified
702 // it. There is a nasty race condition here with the multiprocess browser 702 // it. There is a nasty race condition here with the multiprocess browser
703 // as someone might be setting the cursor in the main process as well. 703 // as someone might be setting the cursor in the main process as well.
704 *cursor = current_windowless_cursor_; 704 *cursor = current_windowless_cursor_;
705 } 705 }
706 #endif 706 #endif
707 707
708 return ret; 708 return ret;
709 } 709 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698