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

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

Issue 509063004: Move ViewMsg_Stop from RenderViewHost to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase to fix patch failure. Created 6 years, 3 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 | Annotate | Revision Log
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_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 if (touch_emulator_ && touch_emulator_->enabled()) 1918 if (touch_emulator_ && touch_emulator_->enabled())
1919 return true; 1919 return true;
1920 1920
1921 return input_router_->ShouldForwardTouchEvent(); 1921 return input_router_->ShouldForwardTouchEvent();
1922 } 1922 }
1923 1923
1924 void RenderWidgetHostImpl::StartUserGesture() { 1924 void RenderWidgetHostImpl::StartUserGesture() {
1925 OnUserGesture(); 1925 OnUserGesture();
1926 } 1926 }
1927 1927
1928 void RenderWidgetHostImpl::Stop() {
1929 Send(new ViewMsg_Stop(GetRoutingID()));
1930 }
1931
1932 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { 1928 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) {
1933 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); 1929 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque));
1934 } 1930 }
1935 1931
1936 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( 1932 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent(
1937 const std::vector<EditCommand>& commands) { 1933 const std::vector<EditCommand>& commands) {
1938 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); 1934 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands));
1939 } 1935 }
1940 1936
1941 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, 1937 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command,
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 } 2317 }
2322 #endif 2318 #endif
2323 2319
2324 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2320 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2325 if (view_) 2321 if (view_)
2326 return view_->PreferredReadbackFormat(); 2322 return view_->PreferredReadbackFormat();
2327 return kN32_SkColorType; 2323 return kN32_SkColorType;
2328 } 2324 }
2329 2325
2330 } // namespace content 2326 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/web_contents/web_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698