| 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 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 void WebContentsImpl::SetHistoryOffsetAndLengthForView( | 2378 void WebContentsImpl::SetHistoryOffsetAndLengthForView( |
| 2379 RenderViewHost* render_view_host, | 2379 RenderViewHost* render_view_host, |
| 2380 int history_offset, | 2380 int history_offset, |
| 2381 int history_length) { | 2381 int history_length) { |
| 2382 render_view_host->Send(new ViewMsg_SetHistoryOffsetAndLength( | 2382 render_view_host->Send(new ViewMsg_SetHistoryOffsetAndLength( |
| 2383 render_view_host->GetRoutingID(), history_offset, history_length)); | 2383 render_view_host->GetRoutingID(), history_offset, history_length)); |
| 2384 } | 2384 } |
| 2385 | 2385 |
| 2386 void WebContentsImpl::ReloadFocusedFrame(bool ignore_cache) { | 2386 void WebContentsImpl::ReloadFocusedFrame(bool bypass_cache) { |
| 2387 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2387 RenderFrameHost* focused_frame = GetFocusedFrame(); |
| 2388 if (!focused_frame) | 2388 if (!focused_frame) |
| 2389 return; | 2389 return; |
| 2390 | 2390 |
| 2391 focused_frame->Send(new FrameMsg_Reload( | 2391 focused_frame->Send(new FrameMsg_Reload( |
| 2392 focused_frame->GetRoutingID(), ignore_cache)); | 2392 focused_frame->GetRoutingID(), bypass_cache)); |
| 2393 } | 2393 } |
| 2394 | 2394 |
| 2395 void WebContentsImpl::ReloadLoFiImages() { | 2395 void WebContentsImpl::ReloadLoFiImages() { |
| 2396 SendToAllFrames(new FrameMsg_ReloadLoFiImages(MSG_ROUTING_NONE)); | 2396 SendToAllFrames(new FrameMsg_ReloadLoFiImages(MSG_ROUTING_NONE)); |
| 2397 } | 2397 } |
| 2398 | 2398 |
| 2399 void WebContentsImpl::Undo() { | 2399 void WebContentsImpl::Undo() { |
| 2400 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2400 RenderFrameHost* focused_frame = GetFocusedFrame(); |
| 2401 if (!focused_frame) | 2401 if (!focused_frame) |
| 2402 return; | 2402 return; |
| (...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4846 else | 4846 else |
| 4847 WasHidden(); | 4847 WasHidden(); |
| 4848 } | 4848 } |
| 4849 | 4849 |
| 4850 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 4850 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 4851 JavaScriptDialogManager* dialog_manager) { | 4851 JavaScriptDialogManager* dialog_manager) { |
| 4852 dialog_manager_ = dialog_manager; | 4852 dialog_manager_ = dialog_manager; |
| 4853 } | 4853 } |
| 4854 | 4854 |
| 4855 } // namespace content | 4855 } // namespace content |
| OLD | NEW |