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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 DCHECK(result.second); | 1014 DCHECK(result.second); |
1015 return base::Bind(&WebContentsImpl::RemoveBindingSet, | 1015 return base::Bind(&WebContentsImpl::RemoveBindingSet, |
1016 weak_factory_.GetWeakPtr(), interface_name); | 1016 weak_factory_.GetWeakPtr(), interface_name); |
1017 } | 1017 } |
1018 | 1018 |
1019 void WebContentsImpl::UpdateDeviceScaleFactor(double device_scale_factor) { | 1019 void WebContentsImpl::UpdateDeviceScaleFactor(double device_scale_factor) { |
1020 SendPageMessage( | 1020 SendPageMessage( |
1021 new PageMsg_SetDeviceScaleFactor(MSG_ROUTING_NONE, device_scale_factor)); | 1021 new PageMsg_SetDeviceScaleFactor(MSG_ROUTING_NONE, device_scale_factor)); |
1022 } | 1022 } |
1023 | 1023 |
| 1024 void WebContentsImpl::UpdatePageScaleFactor(double page_scale_factor) { |
| 1025 SendPageMessage( |
| 1026 new PageMsg_SetPageScaleFactor(MSG_ROUTING_NONE, page_scale_factor)); |
| 1027 } |
| 1028 |
1024 void WebContentsImpl::GetScreenInfo(ScreenInfo* screen_info) { | 1029 void WebContentsImpl::GetScreenInfo(ScreenInfo* screen_info) { |
1025 if (GetView()) | 1030 if (GetView()) |
1026 GetView()->GetScreenInfo(screen_info); | 1031 GetView()->GetScreenInfo(screen_info); |
1027 } | 1032 } |
1028 | 1033 |
1029 WebUI* WebContentsImpl::CreateSubframeWebUI(const GURL& url, | 1034 WebUI* WebContentsImpl::CreateSubframeWebUI(const GURL& url, |
1030 const std::string& frame_name) { | 1035 const std::string& frame_name) { |
1031 DCHECK(!frame_name.empty()); | 1036 DCHECK(!frame_name.empty()); |
1032 return CreateWebUI(url, frame_name); | 1037 return CreateWebUI(url, frame_name); |
1033 } | 1038 } |
(...skipping 4244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5278 dialog_manager_ = dialog_manager; | 5283 dialog_manager_ = dialog_manager; |
5279 } | 5284 } |
5280 | 5285 |
5281 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5286 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
5282 auto it = binding_sets_.find(interface_name); | 5287 auto it = binding_sets_.find(interface_name); |
5283 if (it != binding_sets_.end()) | 5288 if (it != binding_sets_.end()) |
5284 binding_sets_.erase(it); | 5289 binding_sets_.erase(it); |
5285 } | 5290 } |
5286 | 5291 |
5287 } // namespace content | 5292 } // namespace content |
OLD | NEW |