| 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/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/feature_list.h" | 13 #include "base/feature_list.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
| 17 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
| 18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
| 19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
| 20 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
| 21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 22 #include "base/sys_info.h" | 22 #include "base/sys_info.h" |
| 23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
| 24 #include "base/trace_event/trace_event_synthetic_delay.h" | 24 #include "base/trace_event/trace_event_synthetic_delay.h" |
| 25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
| 26 #include "cc/output/copy_output_request.h" | 26 #include "cc/output/copy_output_request.h" |
| 27 #include "cc/output/output_surface.h" | 27 #include "cc/output/output_surface.h" |
| 28 #include "cc/scheduler/begin_frame_source.h" | 28 #include "cc/scheduler/begin_frame_source.h" |
| 29 #include "components/scheduler/renderer/render_widget_scheduling_state.h" | |
| 30 #include "components/scheduler/renderer/renderer_scheduler.h" | |
| 31 #include "content/common/content_switches_internal.h" | 29 #include "content/common/content_switches_internal.h" |
| 32 #include "content/common/input/synthetic_gesture_packet.h" | 30 #include "content/common/input/synthetic_gesture_packet.h" |
| 33 #include "content/common/input/web_input_event_traits.h" | 31 #include "content/common/input/web_input_event_traits.h" |
| 34 #include "content/common/input_messages.h" | 32 #include "content/common/input_messages.h" |
| 35 #include "content/common/swapped_out_messages.h" | 33 #include "content/common/swapped_out_messages.h" |
| 36 #include "content/common/text_input_state.h" | 34 #include "content/common/text_input_state.h" |
| 37 #include "content/common/view_messages.h" | 35 #include "content/common/view_messages.h" |
| 38 #include "content/public/common/content_features.h" | 36 #include "content/public/common/content_features.h" |
| 39 #include "content/public/common/content_switches.h" | 37 #include "content/public/common/content_switches.h" |
| 40 #include "content/public/common/context_menu_params.h" | 38 #include "content/public/common/context_menu_params.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 #include "content/renderer/renderer_blink_platform_impl.h" | 54 #include "content/renderer/renderer_blink_platform_impl.h" |
| 57 #include "content/renderer/resizing_mode_selector.h" | 55 #include "content/renderer/resizing_mode_selector.h" |
| 58 #include "ipc/ipc_sync_message.h" | 56 #include "ipc/ipc_sync_message.h" |
| 59 #include "skia/ext/platform_canvas.h" | 57 #include "skia/ext/platform_canvas.h" |
| 60 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 58 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
| 61 #include "third_party/WebKit/public/platform/WebPoint.h" | 59 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 62 #include "third_party/WebKit/public/platform/WebRect.h" | 60 #include "third_party/WebKit/public/platform/WebRect.h" |
| 63 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 61 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 64 #include "third_party/WebKit/public/platform/WebSize.h" | 62 #include "third_party/WebKit/public/platform/WebSize.h" |
| 65 #include "third_party/WebKit/public/platform/WebString.h" | 63 #include "third_party/WebKit/public/platform/WebString.h" |
| 64 #include "third_party/WebKit/public/platform/scheduler/renderer/render_widget_sc
heduling_state.h" |
| 65 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
| 66 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" | 66 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" |
| 67 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 67 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
| 68 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 68 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 69 #include "third_party/WebKit/public/web/WebNode.h" | 69 #include "third_party/WebKit/public/web/WebNode.h" |
| 70 #include "third_party/WebKit/public/web/WebPagePopup.h" | 70 #include "third_party/WebKit/public/web/WebPagePopup.h" |
| 71 #include "third_party/WebKit/public/web/WebPopupMenuInfo.h" | 71 #include "third_party/WebKit/public/web/WebPopupMenuInfo.h" |
| 72 #include "third_party/WebKit/public/web/WebRange.h" | 72 #include "third_party/WebKit/public/web/WebRange.h" |
| 73 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 73 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 74 #include "third_party/WebKit/public/web/WebView.h" | 74 #include "third_party/WebKit/public/web/WebView.h" |
| 75 #include "third_party/WebKit/public/web/WebWidget.h" | 75 #include "third_party/WebKit/public/web/WebWidget.h" |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2066 void RenderWidget::requestPointerUnlock() { | 2066 void RenderWidget::requestPointerUnlock() { |
| 2067 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 2067 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 bool RenderWidget::isPointerLocked() { | 2070 bool RenderWidget::isPointerLocked() { |
| 2071 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2071 return mouse_lock_dispatcher_->IsMouseLockedTo( |
| 2072 webwidget_mouse_lock_target_.get()); | 2072 webwidget_mouse_lock_target_.get()); |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 } // namespace content | 2075 } // namespace content |
| OLD | NEW |