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" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "content/renderer/render_process.h" | 61 #include "content/renderer/render_process.h" |
62 #include "content/renderer/render_thread_impl.h" | 62 #include "content/renderer/render_thread_impl.h" |
63 #include "content/renderer/render_view_impl.h" | 63 #include "content/renderer/render_view_impl.h" |
64 #include "content/renderer/render_widget_owner_delegate.h" | 64 #include "content/renderer/render_widget_owner_delegate.h" |
65 #include "content/renderer/renderer_blink_platform_impl.h" | 65 #include "content/renderer/renderer_blink_platform_impl.h" |
66 #include "content/renderer/resizing_mode_selector.h" | 66 #include "content/renderer/resizing_mode_selector.h" |
67 #include "gpu/command_buffer/client/shared_memory_limits.h" | 67 #include "gpu/command_buffer/client/shared_memory_limits.h" |
68 #include "ipc/ipc_sync_message.h" | 68 #include "ipc/ipc_sync_message.h" |
69 #include "skia/ext/platform_canvas.h" | 69 #include "skia/ext/platform_canvas.h" |
70 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 70 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
71 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | |
72 #include "third_party/WebKit/public/platform/WebPoint.h" | 71 #include "third_party/WebKit/public/platform/WebPoint.h" |
73 #include "third_party/WebKit/public/platform/WebRect.h" | 72 #include "third_party/WebKit/public/platform/WebRect.h" |
74 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 73 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
75 #include "third_party/WebKit/public/platform/WebSize.h" | 74 #include "third_party/WebKit/public/platform/WebSize.h" |
76 #include "third_party/WebKit/public/platform/WebString.h" | 75 #include "third_party/WebKit/public/platform/WebString.h" |
77 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" | 76 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" |
78 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 77 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
79 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 78 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
80 #include "third_party/WebKit/public/web/WebNode.h" | 79 #include "third_party/WebKit/public/web/WebNode.h" |
81 #include "third_party/WebKit/public/web/WebPagePopup.h" | 80 #include "third_party/WebKit/public/web/WebPagePopup.h" |
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2104 } | 2103 } |
2105 | 2104 |
2106 float RenderWidget::GetOriginalDeviceScaleFactor() const { | 2105 float RenderWidget::GetOriginalDeviceScaleFactor() const { |
2107 return | 2106 return |
2108 screen_metrics_emulator_ ? | 2107 screen_metrics_emulator_ ? |
2109 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : | 2108 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : |
2110 device_scale_factor_; | 2109 device_scale_factor_; |
2111 } | 2110 } |
2112 | 2111 |
2113 } // namespace content | 2112 } // namespace content |
OLD | NEW |