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

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: 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 } 1967 }
1968 1968
1969 void RenderWidgetHostImpl::StartUserGesture() { 1969 void RenderWidgetHostImpl::StartUserGesture() {
1970 OnUserGesture(); 1970 OnUserGesture();
1971 } 1971 }
1972 1972
1973 void RenderWidgetHostImpl::Stop() { 1973 void RenderWidgetHostImpl::Stop() {
1974 Send(new ViewMsg_Stop(GetRoutingID())); 1974 Send(new ViewMsg_Stop(GetRoutingID()));
1975 } 1975 }
1976 1976
1977 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { 1977 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) {
1978 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); 1978 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque));
1979 } 1979 }
1980 1980
1981 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( 1981 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent(
1982 const std::vector<EditCommand>& commands) { 1982 const std::vector<EditCommand>& commands) {
1983 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); 1983 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands));
1984 } 1984 }
1985 1985
1986 void RenderWidgetHostImpl::AddAccessibilityMode(AccessibilityMode mode) { 1986 void RenderWidgetHostImpl::AddAccessibilityMode(AccessibilityMode mode) {
1987 SetAccessibilityMode( 1987 SetAccessibilityMode(
1988 content::AddAccessibilityModeTo(accessibility_mode_, mode)); 1988 content::AddAccessibilityModeTo(accessibility_mode_, mode));
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 } 2345 }
2346 } 2346 }
2347 2347
2348 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2348 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2349 if (view_) 2349 if (view_)
2350 return view_->PreferredReadbackFormat(); 2350 return view_->PreferredReadbackFormat();
2351 return SkBitmap::kARGB_8888_Config; 2351 return SkBitmap::kARGB_8888_Config;
2352 } 2352 }
2353 2353
2354 } // namespace content 2354 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698