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_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 1734 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
1735 BrowserAccessibilityManager* manager = | 1735 BrowserAccessibilityManager* manager = |
1736 view_->GetBrowserAccessibilityManager(); | 1736 view_->GetBrowserAccessibilityManager(); |
1737 if (manager) | 1737 if (manager) |
1738 manager->OnLocationChanges(params); | 1738 manager->OnLocationChanges(params); |
1739 } | 1739 } |
1740 // TODO(aboxhall): send location change events to web contents observers too | 1740 // TODO(aboxhall): send location change events to web contents observers too |
1741 } | 1741 } |
1742 } | 1742 } |
1743 | 1743 |
1744 void RenderViewHostImpl::OnDidZoomURL(double zoom_level, | 1744 void RenderViewHostImpl::OnDidZoomURL(int zoom_id, |
| 1745 double zoom_level, |
1745 bool remember, | 1746 bool remember, |
1746 const GURL& url) { | 1747 const GURL& url) { |
1747 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( | 1748 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( |
1748 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); | 1749 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); |
1749 if (remember) { | 1750 if (remember) { |
1750 host_zoom_map-> | 1751 host_zoom_map-> |
1751 SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), zoom_level); | 1752 SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), zoom_id, |
| 1753 zoom_level); |
1752 } else { | 1754 } else { |
1753 host_zoom_map->SetTemporaryZoomLevel( | 1755 host_zoom_map->SetTemporaryZoomLevel( |
1754 GetProcess()->GetID(), GetRoutingID(), zoom_level); | 1756 GetProcess()->GetID(), GetRoutingID(), net::GetHostOrSpecFromURL(url), |
| 1757 zoom_id, zoom_level); |
1755 } | 1758 } |
1756 } | 1759 } |
1757 | 1760 |
1758 void RenderViewHostImpl::OnRequestDesktopNotificationPermission( | 1761 void RenderViewHostImpl::OnRequestDesktopNotificationPermission( |
1759 const GURL& source_origin, int callback_context) { | 1762 const GURL& source_origin, int callback_context) { |
1760 GetContentClient()->browser()->RequestDesktopNotificationPermission( | 1763 GetContentClient()->browser()->RequestDesktopNotificationPermission( |
1761 source_origin, callback_context, GetProcess()->GetID(), GetRoutingID()); | 1764 source_origin, callback_context, GetProcess()->GetID(), GetRoutingID()); |
1762 } | 1765 } |
1763 | 1766 |
1764 void RenderViewHostImpl::OnShowDesktopNotification( | 1767 void RenderViewHostImpl::OnShowDesktopNotification( |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1849 return true; | 1852 return true; |
1850 } | 1853 } |
1851 | 1854 |
1852 void RenderViewHostImpl::AttachToFrameTree() { | 1855 void RenderViewHostImpl::AttachToFrameTree() { |
1853 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1856 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1854 | 1857 |
1855 frame_tree->ResetForMainFrameSwap(); | 1858 frame_tree->ResetForMainFrameSwap(); |
1856 } | 1859 } |
1857 | 1860 |
1858 } // namespace content | 1861 } // namespace content |
OLD | NEW |