OLD | NEW |
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 #include "chrome/renderer/render_widget.h" | 5 #include "chrome/renderer/render_widget.h" |
6 | 6 |
7 #include "app/surface/transport_dib.h" | 7 #include "app/surface/transport_dib.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/render_messages.h" | 15 #include "chrome/common/render_messages.h" |
16 #include "chrome/common/render_messages_params.h" | 16 #include "chrome/common/render_messages_params.h" |
17 #include "chrome/renderer/render_process.h" | 17 #include "chrome/renderer/render_process.h" |
18 #include "chrome/renderer/render_thread.h" | 18 #include "chrome/renderer/render_thread.h" |
19 #include "gfx/point.h" | |
20 #include "gfx/size.h" | |
21 #include "ipc/ipc_sync_message.h" | 19 #include "ipc/ipc_sync_message.h" |
22 #include "skia/ext/platform_canvas.h" | 20 #include "skia/ext/platform_canvas.h" |
23 #include "third_party/skia/include/core/SkShader.h" | 21 #include "third_party/skia/include/core/SkShader.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" |
| 28 #include "ui/gfx/point.h" |
| 29 #include "ui/gfx/size.h" |
30 #include "webkit/glue/webkit_glue.h" | 30 #include "webkit/glue/webkit_glue.h" |
31 #include "webkit/plugins/npapi/webplugin.h" | 31 #include "webkit/plugins/npapi/webplugin.h" |
32 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 32 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
33 | 33 |
34 #if defined(OS_POSIX) | 34 #if defined(OS_POSIX) |
35 #include "ipc/ipc_channel_posix.h" | 35 #include "ipc/ipc_channel_posix.h" |
36 #include "third_party/skia/include/core/SkPixelRef.h" | 36 #include "third_party/skia/include/core/SkPixelRef.h" |
37 #include "third_party/skia/include/core/SkMallocPixelRef.h" | 37 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
38 #endif // defined(OS_POSIX) | 38 #endif // defined(OS_POSIX) |
39 | 39 |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1069 |
1070 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { | 1070 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { |
1071 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); | 1071 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); |
1072 i != plugin_window_moves_.end(); ++i) { | 1072 i != plugin_window_moves_.end(); ++i) { |
1073 if (i->window == window) { | 1073 if (i->window == window) { |
1074 plugin_window_moves_.erase(i); | 1074 plugin_window_moves_.erase(i); |
1075 break; | 1075 break; |
1076 } | 1076 } |
1077 } | 1077 } |
1078 } | 1078 } |
OLD | NEW |