OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "content/common/input_messages.h" | 52 #include "content/common/input_messages.h" |
53 #include "content/common/view_messages.h" | 53 #include "content/common/view_messages.h" |
54 #include "content/public/browser/native_web_keyboard_event.h" | 54 #include "content/public/browser/native_web_keyboard_event.h" |
55 #include "content/public/browser/notification_service.h" | 55 #include "content/public/browser/notification_service.h" |
56 #include "content/public/browser/notification_types.h" | 56 #include "content/public/browser/notification_types.h" |
57 #include "content/public/browser/render_widget_host_iterator.h" | 57 #include "content/public/browser/render_widget_host_iterator.h" |
58 #include "content/public/browser/user_metrics.h" | 58 #include "content/public/browser/user_metrics.h" |
59 #include "content/public/common/content_constants.h" | 59 #include "content/public/common/content_constants.h" |
60 #include "content/public/common/content_switches.h" | 60 #include "content/public/common/content_switches.h" |
61 #include "content/public/common/result_codes.h" | 61 #include "content/public/common/result_codes.h" |
| 62 #include "content/public/common/webpreferences.h" |
62 #include "skia/ext/image_operations.h" | 63 #include "skia/ext/image_operations.h" |
63 #include "skia/ext/platform_canvas.h" | 64 #include "skia/ext/platform_canvas.h" |
64 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 65 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
65 #include "ui/events/event.h" | 66 #include "ui/events/event.h" |
66 #include "ui/events/keycodes/keyboard_codes.h" | 67 #include "ui/events/keycodes/keyboard_codes.h" |
67 #include "ui/gfx/size_conversions.h" | 68 #include "ui/gfx/size_conversions.h" |
68 #include "ui/gfx/skbitmap_operations.h" | 69 #include "ui/gfx/skbitmap_operations.h" |
69 #include "ui/gfx/vector2d_conversions.h" | 70 #include "ui/gfx/vector2d_conversions.h" |
70 #include "ui/snapshot/snapshot.h" | 71 #include "ui/snapshot/snapshot.h" |
71 #include "webkit/common/webpreferences.h" | |
72 | 72 |
73 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
74 #include "content/common/plugin_constants_win.h" | 74 #include "content/common/plugin_constants_win.h" |
75 #endif | 75 #endif |
76 | 76 |
77 using base::Time; | 77 using base::Time; |
78 using base::TimeDelta; | 78 using base::TimeDelta; |
79 using base::TimeTicks; | 79 using base::TimeTicks; |
80 using blink::WebGestureEvent; | 80 using blink::WebGestureEvent; |
81 using blink::WebInputEvent; | 81 using blink::WebInputEvent; |
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 } | 2368 } |
2369 } | 2369 } |
2370 | 2370 |
2371 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2371 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
2372 if (view_) | 2372 if (view_) |
2373 return view_->PreferredReadbackFormat(); | 2373 return view_->PreferredReadbackFormat(); |
2374 return SkBitmap::kARGB_8888_Config; | 2374 return SkBitmap::kARGB_8888_Config; |
2375 } | 2375 } |
2376 | 2376 |
2377 } // namespace content | 2377 } // namespace content |
OLD | NEW |