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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1927 NOTREACHED() << "Received script response for unknown request"; | 1927 NOTREACHED() << "Received script response for unknown request"; |
1928 } | 1928 } |
1929 } | 1929 } |
1930 | 1930 |
1931 void RenderViewHostImpl::OnDidZoomURL(double zoom_level, | 1931 void RenderViewHostImpl::OnDidZoomURL(double zoom_level, |
1932 bool remember, | 1932 bool remember, |
1933 const GURL& url) { | 1933 const GURL& url) { |
1934 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( | 1934 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( |
1935 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); | 1935 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); |
1936 if (remember) { | 1936 if (remember) { |
1937 host_zoom_map->SetZoomLevel(net::GetHostOrSpecFromURL(url), zoom_level); | 1937 host_zoom_map-> |
| 1938 SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), zoom_level); |
1938 } else { | 1939 } else { |
1939 host_zoom_map->SetTemporaryZoomLevel( | 1940 host_zoom_map->SetTemporaryZoomLevel( |
1940 GetProcess()->GetID(), GetRoutingID(), zoom_level); | 1941 GetProcess()->GetID(), GetRoutingID(), zoom_level); |
1941 } | 1942 } |
1942 } | 1943 } |
1943 | 1944 |
1944 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie, | 1945 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie, |
1945 bool has_video, | 1946 bool has_video, |
1946 bool has_audio, | 1947 bool has_audio, |
1947 bool is_playing) { | 1948 bool is_playing) { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2071 GetRoutingID(), snapshot_id, snapshot_size, png)); | 2072 GetRoutingID(), snapshot_id, snapshot_size, png)); |
2072 return; | 2073 return; |
2073 } | 2074 } |
2074 } | 2075 } |
2075 | 2076 |
2076 Send(new ViewMsg_WindowSnapshotCompleted( | 2077 Send(new ViewMsg_WindowSnapshotCompleted( |
2077 GetRoutingID(), snapshot_id, gfx::Size(), png)); | 2078 GetRoutingID(), snapshot_id, gfx::Size(), png)); |
2078 } | 2079 } |
2079 | 2080 |
2080 } // namespace content | 2081 } // namespace content |
OLD | NEW |