| 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 27 matching lines...) Expand all Loading... |
| 38 #include "content/browser/renderer_host/input/synthetic_gesture_controller.h" | 38 #include "content/browser/renderer_host/input/synthetic_gesture_controller.h" |
| 39 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 39 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
| 40 #include "content/browser/renderer_host/input/timeout_monitor.h" | 40 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 41 #include "content/browser/renderer_host/overscroll_controller.h" | 41 #include "content/browser/renderer_host/overscroll_controller.h" |
| 42 #include "content/browser/renderer_host/render_process_host_impl.h" | 42 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 43 #include "content/browser/renderer_host/render_view_host_impl.h" | 43 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 44 #include "content/browser/renderer_host/render_widget_helper.h" | 44 #include "content/browser/renderer_host/render_widget_helper.h" |
| 45 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 45 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 46 #include "content/common/accessibility_messages.h" | 46 #include "content/common/accessibility_messages.h" |
| 47 #include "content/common/content_constants_internal.h" | 47 #include "content/common/content_constants_internal.h" |
| 48 #include "content/common/cursors/webcursor.h" |
| 48 #include "content/common/gpu/gpu_messages.h" | 49 #include "content/common/gpu/gpu_messages.h" |
| 49 #include "content/common/input_messages.h" | 50 #include "content/common/input_messages.h" |
| 50 #include "content/common/view_messages.h" | 51 #include "content/common/view_messages.h" |
| 51 #include "content/port/browser/render_widget_host_view_port.h" | 52 #include "content/port/browser/render_widget_host_view_port.h" |
| 52 #include "content/public/browser/native_web_keyboard_event.h" | 53 #include "content/public/browser/native_web_keyboard_event.h" |
| 53 #include "content/public/browser/notification_service.h" | 54 #include "content/public/browser/notification_service.h" |
| 54 #include "content/public/browser/notification_types.h" | 55 #include "content/public/browser/notification_types.h" |
| 55 #include "content/public/browser/render_widget_host_iterator.h" | 56 #include "content/public/browser/render_widget_host_iterator.h" |
| 56 #include "content/public/browser/user_metrics.h" | 57 #include "content/public/browser/user_metrics.h" |
| 57 #include "content/public/common/content_constants.h" | 58 #include "content/public/common/content_constants.h" |
| 58 #include "content/public/common/content_switches.h" | 59 #include "content/public/common/content_switches.h" |
| 59 #include "content/public/common/result_codes.h" | 60 #include "content/public/common/result_codes.h" |
| 60 #include "skia/ext/image_operations.h" | 61 #include "skia/ext/image_operations.h" |
| 61 #include "skia/ext/platform_canvas.h" | 62 #include "skia/ext/platform_canvas.h" |
| 62 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 63 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 63 #include "ui/events/event.h" | 64 #include "ui/events/event.h" |
| 64 #include "ui/events/keycodes/keyboard_codes.h" | 65 #include "ui/events/keycodes/keyboard_codes.h" |
| 65 #include "ui/gfx/size_conversions.h" | 66 #include "ui/gfx/size_conversions.h" |
| 66 #include "ui/gfx/skbitmap_operations.h" | 67 #include "ui/gfx/skbitmap_operations.h" |
| 67 #include "ui/gfx/vector2d_conversions.h" | 68 #include "ui/gfx/vector2d_conversions.h" |
| 68 #include "ui/snapshot/snapshot.h" | 69 #include "ui/snapshot/snapshot.h" |
| 69 #include "webkit/common/cursors/webcursor.h" | |
| 70 #include "webkit/common/webpreferences.h" | 70 #include "webkit/common/webpreferences.h" |
| 71 | 71 |
| 72 #if defined(TOOLKIT_GTK) | 72 #if defined(TOOLKIT_GTK) |
| 73 #include "content/browser/renderer_host/backing_store_gtk.h" | 73 #include "content/browser/renderer_host/backing_store_gtk.h" |
| 74 #elif defined(OS_MACOSX) | 74 #elif defined(OS_MACOSX) |
| 75 #include "content/browser/renderer_host/backing_store_mac.h" | 75 #include "content/browser/renderer_host/backing_store_mac.h" |
| 76 #elif defined(OS_WIN) | 76 #elif defined(OS_WIN) |
| 77 #include "content/common/plugin_constants_win.h" | 77 #include "content/common/plugin_constants_win.h" |
| 78 #endif | 78 #endif |
| 79 | 79 |
| (...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 } | 2526 } |
| 2527 } | 2527 } |
| 2528 | 2528 |
| 2529 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2529 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2530 if (view_) | 2530 if (view_) |
| 2531 return view_->PreferredReadbackFormat(); | 2531 return view_->PreferredReadbackFormat(); |
| 2532 return SkBitmap::kARGB_8888_Config; | 2532 return SkBitmap::kARGB_8888_Config; |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 } // namespace content | 2535 } // namespace content |
| OLD | NEW |