| 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 ShouldUseAcceleratedCompositingForScrollableFrames(device_scale_factor_)); | 826 ShouldUseAcceleratedCompositingForScrollableFrames(device_scale_factor_)); |
| 827 webview()->settings()->setCompositedScrollingForFramesEnabled( | 827 webview()->settings()->setCompositedScrollingForFramesEnabled( |
| 828 ShouldUseCompositedScrollingForFrames(device_scale_factor_)); | 828 ShouldUseCompositedScrollingForFrames(device_scale_factor_)); |
| 829 | 829 |
| 830 ApplyWebPreferences(webkit_preferences_, webview()); | 830 ApplyWebPreferences(webkit_preferences_, webview()); |
| 831 | 831 |
| 832 main_render_frame_.reset( | 832 main_render_frame_.reset( |
| 833 RenderFrameImpl::Create(this, params->main_frame_routing_id)); | 833 RenderFrameImpl::Create(this, params->main_frame_routing_id)); |
| 834 // The main frame WebFrame object is closed by | 834 // The main frame WebFrame object is closed by |
| 835 // RenderFrameImpl::frameDetached(). | 835 // RenderFrameImpl::frameDetached(). |
| 836 webview()->setMainFrame(WebFrame::create(main_render_frame_.get())); | 836 webview()->setMainFrame(WebFrame::create(main_render_frame_.get(), |
| 837 params->main_frame_routing_id)); |
| 837 main_render_frame_->SetWebFrame(webview()->mainFrame()); | 838 main_render_frame_->SetWebFrame(webview()->mainFrame()); |
| 838 | 839 |
| 839 if (switches::IsTouchDragDropEnabled()) | 840 if (switches::IsTouchDragDropEnabled()) |
| 840 webview()->settings()->setTouchDragDropEnabled(true); | 841 webview()->settings()->setTouchDragDropEnabled(true); |
| 841 | 842 |
| 842 if (switches::IsTouchEditingEnabled()) | 843 if (switches::IsTouchEditingEnabled()) |
| 843 webview()->settings()->setTouchEditingEnabled(true); | 844 webview()->settings()->setTouchEditingEnabled(true); |
| 844 | 845 |
| 845 if (!params->frame_name.empty()) | 846 if (!params->frame_name.empty()) |
| 846 webview()->mainFrame()->setName(params->frame_name); | 847 webview()->mainFrame()->setName(params->frame_name); |
| (...skipping 4703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5550 for (size_t i = 0; i < icon_urls.size(); i++) { | 5551 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 5551 WebURL url = icon_urls[i].iconURL(); | 5552 WebURL url = icon_urls[i].iconURL(); |
| 5552 if (!url.isEmpty()) | 5553 if (!url.isEmpty()) |
| 5553 urls.push_back(FaviconURL(url, | 5554 urls.push_back(FaviconURL(url, |
| 5554 ToFaviconType(icon_urls[i].iconType()))); | 5555 ToFaviconType(icon_urls[i].iconType()))); |
| 5555 } | 5556 } |
| 5556 SendUpdateFaviconURL(urls); | 5557 SendUpdateFaviconURL(urls); |
| 5557 } | 5558 } |
| 5558 | 5559 |
| 5559 } // namespace content | 5560 } // namespace content |
| OLD | NEW |