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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.cc

Issue 3032027: Header cleanup in chrome/renderer/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: change away from lazy initialization Created 10 years, 4 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
« no previous file with comments | « chrome/renderer/webplugin_delegate_pepper.h ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('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) 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 #define PEPPER_APIS_ENABLED 1 5 #define PEPPER_APIS_ENABLED 1
6 6
7 #include "chrome/renderer/webplugin_delegate_pepper.h" 7 #include "chrome/renderer/webplugin_delegate_pepper.h"
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #if defined(OS_LINUX) 12 #if defined(OS_LINUX)
13 #include <unistd.h> 13 #include <unistd.h>
14 #endif 14 #endif
15 15
16 #include "base/file_path.h"
16 #include "base/file_util.h" 17 #include "base/file_util.h"
17 #include "base/keyboard_codes.h" 18 #include "base/keyboard_codes.h"
18 #if defined(OS_MACOSX) 19 #if defined(OS_MACOSX)
19 #include "base/mac_util.h" 20 #include "base/mac_util.h"
20 #endif 21 #endif
21 #include "base/md5.h" 22 #include "base/md5.h"
22 #include "base/message_loop.h" 23 #include "base/message_loop.h"
23 #include "base/path_service.h" 24 #include "base/path_service.h"
24 #include "base/process_util.h" 25 #include "base/process_util.h"
25 #if defined(OS_MACOSX) 26 #if defined(OS_MACOSX)
26 #include "base/scoped_cftyperef.h" 27 #include "base/scoped_cftyperef.h"
27 #endif 28 #endif
28 #include "base/scoped_ptr.h" 29 #include "base/scoped_ptr.h"
29 #include "base/stats_counters.h" 30 #include "base/stats_counters.h"
30 #include "base/string_util.h" 31 #include "base/string_util.h"
32 #include "base/task.h"
31 #include "base/time.h" 33 #include "base/time.h"
32 #include "chrome/common/chrome_paths.h" 34 #include "chrome/common/chrome_paths.h"
33 #include "chrome/common/render_messages.h" 35 #include "chrome/common/render_messages.h"
34 #include "chrome/renderer/pepper_widget.h" 36 #include "chrome/renderer/pepper_widget.h"
35 #include "chrome/renderer/render_thread.h" 37 #include "chrome/renderer/render_thread.h"
38 #include "chrome/renderer/render_view.h"
36 #if defined(OS_LINUX) 39 #if defined(OS_LINUX)
37 #include "chrome/renderer/renderer_sandbox_support_linux.h" 40 #include "chrome/renderer/renderer_sandbox_support_linux.h"
38 #endif 41 #endif
39 #include "chrome/renderer/webplugin_delegate_proxy.h" 42 #include "chrome/renderer/webplugin_delegate_proxy.h"
40 #include "gfx/blit.h" 43 #include "gfx/blit.h"
41 #if defined(OS_WIN) 44 #if defined(OS_WIN)
42 #include "gfx/codec/jpeg_codec.h" 45 #include "gfx/codec/jpeg_codec.h"
43 #include "gfx/gdi_util.h" 46 #include "gfx/gdi_util.h"
44 #include "printing/units.h" 47 #include "printing/units.h"
45 #include "skia/ext/vector_platform_device.h" 48 #include "skia/ext/vector_platform_device.h"
46 #endif 49 #endif
47 #include "printing/native_metafile.h" 50 #include "printing/native_metafile.h"
48 #include "third_party/npapi/bindings/npapi_extensions.h" 51 #include "third_party/npapi/bindings/npapi_extensions.h"
49 #include "third_party/npapi/bindings/npapi_extensions_private.h" 52 #include "third_party/npapi/bindings/npapi_extensions_private.h"
50 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" 53 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
51 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 54 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
52 #include "webkit/glue/plugins/plugin_constants_win.h" 55 #include "webkit/glue/plugins/plugin_constants_win.h"
53 #include "webkit/glue/plugins/plugin_instance.h" 56 #include "webkit/glue/plugins/plugin_instance.h"
54 #include "webkit/glue/plugins/plugin_lib.h" 57 #include "webkit/glue/plugins/plugin_lib.h"
55 #include "webkit/glue/plugins/plugin_list.h" 58 #include "webkit/glue/plugins/plugin_list.h"
56 #include "webkit/glue/plugins/plugin_host.h" 59 #include "webkit/glue/plugins/plugin_host.h"
57 #include "webkit/glue/plugins/plugin_stream_url.h" 60 #include "webkit/glue/plugins/plugin_stream_url.h"
61 #include "webkit/glue/webcursor.h"
58 #include "webkit/glue/webkit_glue.h" 62 #include "webkit/glue/webkit_glue.h"
59 63
60 #if defined(ENABLE_GPU) 64 #if defined(ENABLE_GPU)
61 #include "webkit/glue/plugins/plugin_constants_win.h" 65 #include "webkit/glue/plugins/plugin_constants_win.h"
62 #endif 66 #endif
63 67
64 using gpu::Buffer; 68 using gpu::Buffer;
65 using webkit_glue::WebPlugin; 69 using webkit_glue::WebPlugin;
66 using webkit_glue::WebPluginDelegate; 70 using webkit_glue::WebPluginDelegate;
67 using webkit_glue::WebPluginResourceClient; 71 using webkit_glue::WebPluginResourceClient;
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 CGRect bounds; 1753 CGRect bounds;
1750 bounds.origin.x = dest_rect.x(); 1754 bounds.origin.x = dest_rect.x();
1751 bounds.origin.y = canvas_height - dest_rect.y() - dest_rect.height(); 1755 bounds.origin.y = canvas_height - dest_rect.y() - dest_rect.height();
1752 bounds.size.width = dest_rect.width(); 1756 bounds.size.width = dest_rect.width();
1753 bounds.size.height = dest_rect.height(); 1757 bounds.size.height = dest_rect.height();
1754 1758
1755 CGContextDrawImage(canvas, bounds, image); 1759 CGContextDrawImage(canvas, bounds, image);
1756 CGContextRestoreGState(canvas); 1760 CGContextRestoreGState(canvas);
1757 } 1761 }
1758 #endif // defined(OS_MACOSX) 1762 #endif // defined(OS_MACOSX)
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_pepper.h ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698