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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/web_preferences.h" | 62 #include "content/public/common/web_preferences.h" |
63 #include "skia/ext/image_operations.h" | 63 #include "skia/ext/image_operations.h" |
64 #include "skia/ext/platform_canvas.h" | 64 #include "skia/ext/platform_canvas.h" |
65 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 65 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
66 #include "ui/events/event.h" | 66 #include "ui/events/event.h" |
67 #include "ui/events/keycodes/keyboard_codes.h" | 67 #include "ui/events/keycodes/keyboard_codes.h" |
| 68 #include "ui/gfx/geometry/vector2d_conversions.h" |
68 #include "ui/gfx/size_conversions.h" | 69 #include "ui/gfx/size_conversions.h" |
69 #include "ui/gfx/skbitmap_operations.h" | 70 #include "ui/gfx/skbitmap_operations.h" |
70 #include "ui/gfx/vector2d_conversions.h" | |
71 #include "ui/snapshot/snapshot.h" | 71 #include "ui/snapshot/snapshot.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; |
(...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 } | 2397 } |
2398 #endif | 2398 #endif |
2399 | 2399 |
2400 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2400 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
2401 if (view_) | 2401 if (view_) |
2402 return view_->PreferredReadbackFormat(); | 2402 return view_->PreferredReadbackFormat(); |
2403 return kN32_SkColorType; | 2403 return kN32_SkColorType; |
2404 } | 2404 } |
2405 | 2405 |
2406 } // namespace content | 2406 } // namespace content |
OLD | NEW |