| 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_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 | 1127 |
| 1128 settings->setPinchOverlayScrollbarThickness( | 1128 settings->setPinchOverlayScrollbarThickness( |
| 1129 prefs.pinch_overlay_scrollbar_thickness); | 1129 prefs.pinch_overlay_scrollbar_thickness); |
| 1130 settings->setRubberBandingOnCompositorThread( | 1130 settings->setRubberBandingOnCompositorThread( |
| 1131 prefs.rubber_banding_on_compositor_thread); | 1131 prefs.rubber_banding_on_compositor_thread); |
| 1132 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 1132 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 1133 | 1133 |
| 1134 #if defined(OS_WIN) | 1134 #if defined(OS_WIN) |
| 1135 settings->setShowContextMenuOnMouseUp(true); | 1135 settings->setShowContextMenuOnMouseUp(true); |
| 1136 #endif | 1136 #endif |
| 1137 |
| 1138 #if defined(OS_MACOSX) |
| 1139 settings->setDoubleTapToZoomEnabled(true); |
| 1140 #endif |
| 1137 } | 1141 } |
| 1138 | 1142 |
| 1139 /*static*/ | 1143 /*static*/ |
| 1140 RenderViewImpl* RenderViewImpl::Create(const ViewMsg_New_Params& params, | 1144 RenderViewImpl* RenderViewImpl::Create(const ViewMsg_New_Params& params, |
| 1141 CompositorDependencies* compositor_deps, | 1145 CompositorDependencies* compositor_deps, |
| 1142 bool was_created_by_renderer) { | 1146 bool was_created_by_renderer) { |
| 1143 DCHECK(params.view_id != MSG_ROUTING_NONE); | 1147 DCHECK(params.view_id != MSG_ROUTING_NONE); |
| 1144 RenderViewImpl* render_view = NULL; | 1148 RenderViewImpl* render_view = NULL; |
| 1145 if (g_create_render_view_impl) | 1149 if (g_create_render_view_impl) |
| 1146 render_view = g_create_render_view_impl(params); | 1150 render_view = g_create_render_view_impl(params); |
| (...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4057 std::vector<gfx::Size> sizes; | 4061 std::vector<gfx::Size> sizes; |
| 4058 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4062 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4059 if (!url.isEmpty()) | 4063 if (!url.isEmpty()) |
| 4060 urls.push_back( | 4064 urls.push_back( |
| 4061 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4065 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4062 } | 4066 } |
| 4063 SendUpdateFaviconURL(urls); | 4067 SendUpdateFaviconURL(urls); |
| 4064 } | 4068 } |
| 4065 | 4069 |
| 4066 } // namespace content | 4070 } // namespace content |
| OLD | NEW |