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

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

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple background color and transparency in RenderWidgetHostView Created 4 years, 9 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_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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2037 }
2038 2038
2039 bool RenderWidgetHostImpl::ShouldDropInputEvents() const { 2039 bool RenderWidgetHostImpl::ShouldDropInputEvents() const {
2040 return ignore_input_events_ || process_->IgnoreInputEvents() || !delegate_; 2040 return ignore_input_events_ || process_->IgnoreInputEvents() || !delegate_;
2041 } 2041 }
2042 2042
2043 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { 2043 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) {
2044 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); 2044 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque));
2045 } 2045 }
2046 2046
2047 void RenderWidgetHostImpl::SetBackgroundColor(SkColor color) {
2048 Send(new ViewMsg_SetBackgroundColor(GetRoutingID(), color));
2049 }
2050
2047 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( 2051 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent(
2048 const std::vector<EditCommand>& commands) { 2052 const std::vector<EditCommand>& commands) {
2049 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); 2053 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands));
2050 } 2054 }
2051 2055
2052 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, 2056 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command,
2053 const std::string& value) { 2057 const std::string& value) {
2054 Send(new InputMsg_ExecuteEditCommand(GetRoutingID(), command, value)); 2058 Send(new InputMsg_ExecuteEditCommand(GetRoutingID(), command, value));
2055 } 2059 }
2056 2060
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 } 2246 }
2243 2247
2244 #if defined(OS_WIN) 2248 #if defined(OS_WIN)
2245 gfx::NativeViewAccessible 2249 gfx::NativeViewAccessible
2246 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2250 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2247 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2251 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2248 } 2252 }
2249 #endif 2253 #endif
2250 2254
2251 } // namespace content 2255 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698