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

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

Issue 274453002: Remove RenderWidget::SetBackground, change IPC to pass a bool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-setbackground: nomac 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 | 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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1958 }
1959 1959
1960 void RenderWidgetHostImpl::StartUserGesture() { 1960 void RenderWidgetHostImpl::StartUserGesture() {
1961 OnUserGesture(); 1961 OnUserGesture();
1962 } 1962 }
1963 1963
1964 void RenderWidgetHostImpl::Stop() { 1964 void RenderWidgetHostImpl::Stop() {
1965 Send(new ViewMsg_Stop(GetRoutingID())); 1965 Send(new ViewMsg_Stop(GetRoutingID()));
1966 } 1966 }
1967 1967
1968 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { 1968 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) {
1969 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); 1969 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque));
1970 } 1970 }
1971 1971
1972 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( 1972 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent(
1973 const std::vector<EditCommand>& commands) { 1973 const std::vector<EditCommand>& commands) {
1974 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); 1974 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands));
1975 } 1975 }
1976 1976
1977 void RenderWidgetHostImpl::AddAccessibilityMode(AccessibilityMode mode) { 1977 void RenderWidgetHostImpl::AddAccessibilityMode(AccessibilityMode mode) {
1978 SetAccessibilityMode( 1978 SetAccessibilityMode(
1979 content::AddAccessibilityModeTo(accessibility_mode_, mode)); 1979 content::AddAccessibilityModeTo(accessibility_mode_, mode));
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 } 2336 }
2337 } 2337 }
2338 2338
2339 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2339 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2340 if (view_) 2340 if (view_)
2341 return view_->PreferredReadbackFormat(); 2341 return view_->PreferredReadbackFormat();
2342 return SkBitmap::kARGB_8888_Config; 2342 return SkBitmap::kARGB_8888_Config;
2343 } 2343 }
2344 2344
2345 } // namespace content 2345 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698