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

Side by Side Diff: chrome/plugin/webplugin_proxy.cc

Issue 11588: Remove base versions of the graphics headers, which previously just forwarded... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/render_view.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) 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 "chrome/plugin/webplugin_proxy.h" 5 #include "chrome/plugin/webplugin_proxy.h"
6 6
7 #include "base/gfx/gdi_util.h" 7 #include "base/gfx/gdi_util.h"
8 #include "base/gfx/platform_device_win.h"
9 #include "base/scoped_handle.h" 8 #include "base/scoped_handle.h"
10 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
11 #include "base/singleton.h" 10 #include "base/singleton.h"
12 #include "chrome/common/gfx/chrome_canvas.h" 11 #include "chrome/common/gfx/chrome_canvas.h"
13 #include "chrome/common/plugin_messages.h" 12 #include "chrome/common/plugin_messages.h"
14 #include "chrome/common/win_util.h" 13 #include "chrome/common/win_util.h"
15 #include "chrome/plugin/plugin_channel.h" 14 #include "chrome/plugin/plugin_channel.h"
16 #include "chrome/plugin/webplugin_delegate_stub.h" 15 #include "chrome/plugin/webplugin_delegate_stub.h"
17 #include "chrome/plugin/npobject_proxy.h" 16 #include "chrome/plugin/npobject_proxy.h"
18 #include "chrome/plugin/npobject_util.h" 17 #include "chrome/plugin/npobject_util.h"
18 #include "skia/ext/platform_device.h"
19 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 19 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
20 20
21 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; 21 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap;
22 static ContextMap& GetContextMap() { 22 static ContextMap& GetContextMap() {
23 return *Singleton<ContextMap>::get(); 23 return *Singleton<ContextMap>::get();
24 } 24 }
25 25
26 WebPluginProxy::WebPluginProxy( 26 WebPluginProxy::WebPluginProxy(
27 PluginChannel* channel, 27 PluginChannel* channel,
28 int route_id, 28 int route_id,
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 Send(new PluginHostMsg_InitiateHTTPRangeRequest(route_id_, url, 386 Send(new PluginHostMsg_InitiateHTTPRangeRequest(route_id_, url,
387 range_info, existing_stream, 387 range_info, existing_stream,
388 notify_needed, notify_data)); 388 notify_needed, notify_data));
389 } 389 }
390 390
391 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) { 391 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) {
392 Paint(damaged_rect); 392 Paint(damaged_rect);
393 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect)); 393 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect));
394 } 394 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698