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 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 void WebContentsImpl::NotifyContextMenuClosed( | 2446 void WebContentsImpl::NotifyContextMenuClosed( |
2447 const CustomContextMenuContext& context) { | 2447 const CustomContextMenuContext& context) { |
2448 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2448 RenderFrameHost* focused_frame = GetFocusedFrame(); |
2449 if (!focused_frame) | 2449 if (!focused_frame) |
2450 return; | 2450 return; |
2451 | 2451 |
2452 focused_frame->Send(new FrameMsg_ContextMenuClosed( | 2452 focused_frame->Send(new FrameMsg_ContextMenuClosed( |
2453 focused_frame->GetRoutingID(), context)); | 2453 focused_frame->GetRoutingID(), context)); |
2454 } | 2454 } |
2455 | 2455 |
| 2456 void WebContentsImpl::ReloadLoFiImages() { |
| 2457 SendToAllFrames(new FrameMsg_ReloadLoFiImages(MSG_ROUTING_NONE)); |
| 2458 } |
| 2459 |
2456 void WebContentsImpl::ExecuteCustomContextMenuCommand( | 2460 void WebContentsImpl::ExecuteCustomContextMenuCommand( |
2457 int action, const CustomContextMenuContext& context) { | 2461 int action, const CustomContextMenuContext& context) { |
2458 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2462 RenderFrameHost* focused_frame = GetFocusedFrame(); |
2459 if (!focused_frame) | 2463 if (!focused_frame) |
2460 return; | 2464 return; |
2461 | 2465 |
2462 focused_frame->Send(new FrameMsg_CustomContextMenuAction( | 2466 focused_frame->Send(new FrameMsg_CustomContextMenuAction( |
2463 focused_frame->GetRoutingID(), context, action)); | 2467 focused_frame->GetRoutingID(), context, action)); |
2464 } | 2468 } |
2465 | 2469 |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4746 const WebContentsObserver::MediaPlayerId& id) { | 4750 const WebContentsObserver::MediaPlayerId& id) { |
4747 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); | 4751 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); |
4748 } | 4752 } |
4749 | 4753 |
4750 void WebContentsImpl::MediaStoppedPlaying( | 4754 void WebContentsImpl::MediaStoppedPlaying( |
4751 const WebContentsObserver::MediaPlayerId& id) { | 4755 const WebContentsObserver::MediaPlayerId& id) { |
4752 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); | 4756 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); |
4753 } | 4757 } |
4754 | 4758 |
4755 } // namespace content | 4759 } // namespace content |
OLD | NEW |