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

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

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.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 "app/gfx/chrome_canvas.h" 7 #include "app/gfx/chrome_canvas.h"
8 #if defined(OS_WIN)
9 #include "app/win_util.h"
10 #endif
8 #include "base/scoped_handle.h" 11 #include "base/scoped_handle.h"
9 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
10 #include "base/singleton.h" 13 #include "base/singleton.h"
11 #include "base/waitable_event.h" 14 #include "base/waitable_event.h"
12 #include "build/build_config.h" 15 #include "build/build_config.h"
13 #include "chrome/common/plugin_messages.h" 16 #include "chrome/common/plugin_messages.h"
14 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
15 #include "chrome/plugin/npobject_proxy.h" 18 #include "chrome/plugin/npobject_proxy.h"
16 #include "chrome/plugin/npobject_util.h" 19 #include "chrome/plugin/npobject_util.h"
17 #include "chrome/plugin/plugin_channel.h" 20 #include "chrome/plugin/plugin_channel.h"
18 #include "chrome/plugin/plugin_thread.h" 21 #include "chrome/plugin/plugin_thread.h"
19 #include "chrome/plugin/webplugin_delegate_stub.h" 22 #include "chrome/plugin/webplugin_delegate_stub.h"
20 #include "skia/ext/platform_device.h" 23 #include "skia/ext/platform_device.h"
21 #include "webkit/glue/webplugin_delegate.h" 24 #include "webkit/glue/webplugin_delegate.h"
22 25
23 #if defined(OS_WIN) 26 #if defined(OS_WIN)
24 #include "base/gfx/gdi_util.h" 27 #include "base/gfx/gdi_util.h"
25 #include "chrome/common/win_util.h"
26 #endif 28 #endif
27 29
28 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; 30 typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap;
29 static ContextMap& GetContextMap() { 31 static ContextMap& GetContextMap() {
30 return *Singleton<ContextMap>::get(); 32 return *Singleton<ContextMap>::get();
31 } 33 }
32 34
33 WebPluginProxy::WebPluginProxy( 35 WebPluginProxy::WebPluginProxy(
34 PluginChannel* channel, 36 PluginChannel* channel,
35 int route_id, 37 int route_id,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 } 459 }
458 460
459 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) { 461 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) {
460 Paint(damaged_rect); 462 Paint(damaged_rect);
461 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect)); 463 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect));
462 } 464 }
463 465
464 bool WebPluginProxy::IsOffTheRecord() { 466 bool WebPluginProxy::IsOffTheRecord() {
465 return channel_->off_the_record(); 467 return channel_->off_the_record();
466 } 468 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698