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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 263453007: Implement "Save image as" for canvas (chromium side). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1578
1579 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { 1579 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) {
1580 SetShouldAutoResize(false); 1580 SetShouldAutoResize(false);
1581 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); 1581 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size));
1582 } 1582 }
1583 1583
1584 void RenderViewHostImpl::CopyImageAt(int x, int y) { 1584 void RenderViewHostImpl::CopyImageAt(int x, int y) {
1585 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y)); 1585 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y));
1586 } 1586 }
1587 1587
1588 void RenderViewHostImpl::SaveImageAt(int x, int y) {
1589 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y));
1590 }
1591
1588 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( 1592 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation(
1589 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { 1593 const gfx::Point& location, const blink::WebMediaPlayerAction& action) {
1590 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); 1594 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action));
1591 } 1595 }
1592 1596
1593 void RenderViewHostImpl::ExecutePluginActionAtLocation( 1597 void RenderViewHostImpl::ExecutePluginActionAtLocation(
1594 const gfx::Point& location, const blink::WebPluginAction& action) { 1598 const gfx::Point& location, const blink::WebPluginAction& action) {
1595 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); 1599 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action));
1596 } 1600 }
1597 1601
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 return true; 1749 return true;
1746 } 1750 }
1747 1751
1748 void RenderViewHostImpl::AttachToFrameTree() { 1752 void RenderViewHostImpl::AttachToFrameTree() {
1749 FrameTree* frame_tree = delegate_->GetFrameTree(); 1753 FrameTree* frame_tree = delegate_->GetFrameTree();
1750 1754
1751 frame_tree->ResetForMainFrameSwap(); 1755 frame_tree->ResetForMainFrameSwap();
1752 } 1756 }
1753 1757
1754 } // namespace content 1758 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698