OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2480 | 2480 |
2481 int RenderFrameImpl::GetRoutingID() { | 2481 int RenderFrameImpl::GetRoutingID() { |
2482 return routing_id_; | 2482 return routing_id_; |
2483 } | 2483 } |
2484 | 2484 |
2485 blink::WebLocalFrame* RenderFrameImpl::GetWebFrame() { | 2485 blink::WebLocalFrame* RenderFrameImpl::GetWebFrame() { |
2486 DCHECK(frame_); | 2486 DCHECK(frame_); |
2487 return frame_; | 2487 return frame_; |
2488 } | 2488 } |
2489 | 2489 |
2490 WebPreferences& RenderFrameImpl::GetWebkitPreferences() { | 2490 const WebPreferences& RenderFrameImpl::GetWebkitPreferences() { |
2491 return render_view_->GetWebkitPreferences(); | 2491 return render_view_->GetWebkitPreferences(); |
2492 } | 2492 } |
2493 | 2493 |
2494 int RenderFrameImpl::ShowContextMenu(ContextMenuClient* client, | 2494 int RenderFrameImpl::ShowContextMenu(ContextMenuClient* client, |
2495 const ContextMenuParams& params) { | 2495 const ContextMenuParams& params) { |
2496 DCHECK(client); // A null client means "internal" when we issue callbacks. | 2496 DCHECK(client); // A null client means "internal" when we issue callbacks. |
2497 ContextMenuParams our_params(params); | 2497 ContextMenuParams our_params(params); |
2498 | 2498 |
2499 blink::WebRect position_in_window(params.x, params.y, 0, 0); | 2499 blink::WebRect position_in_window(params.x, params.y, 0, 0); |
2500 GetRenderWidget()->ConvertViewportToWindow(&position_in_window); | 2500 GetRenderWidget()->ConvertViewportToWindow(&position_in_window); |
(...skipping 4595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7096 policy(info.default_policy), | 7096 policy(info.default_policy), |
7097 replaces_current_history_item(info.replaces_current_history_item), | 7097 replaces_current_history_item(info.replaces_current_history_item), |
7098 history_navigation_in_new_child_frame( | 7098 history_navigation_in_new_child_frame( |
7099 info.is_history_navigation_in_new_child_frame), | 7099 info.is_history_navigation_in_new_child_frame), |
7100 client_redirect(info.is_client_redirect), | 7100 client_redirect(info.is_client_redirect), |
7101 cache_disabled(info.is_cache_disabled), | 7101 cache_disabled(info.is_cache_disabled), |
7102 form(info.form), | 7102 form(info.form), |
7103 source_location(info.source_location) {} | 7103 source_location(info.source_location) {} |
7104 | 7104 |
7105 } // namespace content | 7105 } // namespace content |
OLD | NEW |