Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 2334
2335 void WebContentsImpl::ReloadFocusedFrame(bool ignore_cache) { 2335 void WebContentsImpl::ReloadFocusedFrame(bool ignore_cache) {
2336 RenderFrameHost* focused_frame = GetFocusedFrame(); 2336 RenderFrameHost* focused_frame = GetFocusedFrame();
2337 if (!focused_frame) 2337 if (!focused_frame)
2338 return; 2338 return;
2339 2339
2340 focused_frame->Send(new FrameMsg_Reload( 2340 focused_frame->Send(new FrameMsg_Reload(
2341 focused_frame->GetRoutingID(), ignore_cache)); 2341 focused_frame->GetRoutingID(), ignore_cache));
2342 } 2342 }
2343 2343
2344 void WebContentsImpl::ReloadLoFiImages() {
2345 SendToAllFrames(new FrameMsg_ReloadLoFiImages(MSG_ROUTING_NONE));
2346 }
2347
2344 void WebContentsImpl::Undo() { 2348 void WebContentsImpl::Undo() {
2345 RenderFrameHost* focused_frame = GetFocusedFrame(); 2349 RenderFrameHost* focused_frame = GetFocusedFrame();
2346 if (!focused_frame) 2350 if (!focused_frame)
2347 return; 2351 return;
2348 2352
2349 focused_frame->Send(new InputMsg_Undo(focused_frame->GetRoutingID())); 2353 focused_frame->Send(new InputMsg_Undo(focused_frame->GetRoutingID()));
2350 RecordAction(base::UserMetricsAction("Undo")); 2354 RecordAction(base::UserMetricsAction("Undo"));
2351 } 2355 }
2352 2356
2353 void WebContentsImpl::Redo() { 2357 void WebContentsImpl::Redo() {
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
4756 const WebContentsObserver::MediaPlayerId& id) { 4760 const WebContentsObserver::MediaPlayerId& id) {
4757 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); 4761 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id));
4758 } 4762 }
4759 4763
4760 void WebContentsImpl::MediaStoppedPlaying( 4764 void WebContentsImpl::MediaStoppedPlaying(
4761 const WebContentsObserver::MediaPlayerId& id) { 4765 const WebContentsObserver::MediaPlayerId& id) {
4762 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); 4766 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id));
4763 } 4767 }
4764 4768
4765 } // namespace content 4769 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698