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

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

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 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
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 5 #include "webkit/plugins/npapi/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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 void WebPluginDelegateImpl::PlatformDestroyInstance() { 106 void WebPluginDelegateImpl::PlatformDestroyInstance() {
107 // Nothing to do here. 107 // Nothing to do here.
108 } 108 }
109 109
110 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, 110 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas,
111 const gfx::Rect& rect) { 111 const gfx::Rect& rect) {
112 if (!windowless_) 112 if (!windowless_)
113 return; 113 return;
114 cairo_t* context = skia::BeginPlatformPaint(canvas); 114 skia::ScopedPlatformPaint scoped_platform_paint(canvas);
115 cairo_t* context = scoped_platform_paint.GetPlatformSurface();
115 WindowlessPaint(context, rect); 116 WindowlessPaint(context, rect);
116 skia::EndPlatformPaint(canvas);
117 } 117 }
118 118
119 void WebPluginDelegateImpl::InstallMissingPlugin() { 119 void WebPluginDelegateImpl::InstallMissingPlugin() {
120 NOTIMPLEMENTED(); 120 NOTIMPLEMENTED();
121 } 121 }
122 122
123 bool WebPluginDelegateImpl::WindowedCreatePlugin() { 123 bool WebPluginDelegateImpl::WindowedCreatePlugin() {
124 DCHECK(!windowed_handle_); 124 DCHECK(!windowed_handle_);
125 DCHECK(!plug_); 125 DCHECK(!plug_);
126 126
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 // as someone might be setting the cursor in the main process as well. 759 // as someone might be setting the cursor in the main process as well.
760 *cursor = current_windowless_cursor_; 760 *cursor = current_windowless_cursor_;
761 } 761 }
762 #endif 762 #endif
763 763
764 return ret; 764 return ret;
765 } 765 }
766 766
767 } // namespace npapi 767 } // namespace npapi
768 } // namespace webkit 768 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698