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

Side by Side Diff: content/renderer/render_widget.cc

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 // If we are swapping out, we will call ReleaseProcess, allowing the process 271 // If we are swapping out, we will call ReleaseProcess, allowing the process
272 // to exit if all of its RenderViews are swapped out. We wait until the 272 // to exit if all of its RenderViews are swapped out. We wait until the
273 // WasSwappedOut call to do this, to avoid showing the sad tab. 273 // WasSwappedOut call to do this, to avoid showing the sad tab.
274 // If we are swapping in, we call AddRefProcess to prevent the process from 274 // If we are swapping in, we call AddRefProcess to prevent the process from
275 // exiting. 275 // exiting.
276 if (!is_swapped_out) 276 if (!is_swapped_out)
277 RenderProcess::current()->AddRefProcess(); 277 RenderProcess::current()->AddRefProcess();
278 } 278 }
279 279
280 bool RenderWidget::AllowPartialSwap() const {
281 return true;
282 }
283
280 bool RenderWidget::OnMessageReceived(const IPC::Message& message) { 284 bool RenderWidget::OnMessageReceived(const IPC::Message& message) {
281 bool handled = true; 285 bool handled = true;
282 IPC_BEGIN_MESSAGE_MAP(RenderWidget, message) 286 IPC_BEGIN_MESSAGE_MAP(RenderWidget, message)
283 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 287 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
284 IPC_MESSAGE_HANDLER(ViewMsg_CreatingNew_ACK, OnCreatingNewAck) 288 IPC_MESSAGE_HANDLER(ViewMsg_CreatingNew_ACK, OnCreatingNewAck)
285 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize) 289 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize)
286 IPC_MESSAGE_HANDLER(ViewMsg_ChangeResizeRect, OnChangeResizeRect) 290 IPC_MESSAGE_HANDLER(ViewMsg_ChangeResizeRect, OnChangeResizeRect)
287 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) 291 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden)
288 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) 292 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown)
289 IPC_MESSAGE_HANDLER(ViewMsg_WasSwappedOut, OnWasSwappedOut) 293 IPC_MESSAGE_HANDLER(ViewMsg_WasSwappedOut, OnWasSwappedOut)
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 bool RenderWidget::WillHandleGestureEvent( 2159 bool RenderWidget::WillHandleGestureEvent(
2156 const WebKit::WebGestureEvent& event) { 2160 const WebKit::WebGestureEvent& event) {
2157 return false; 2161 return false;
2158 } 2162 }
2159 2163
2160 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 2164 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
2161 return true; 2165 return true;
2162 } 2166 }
2163 2167
2164 } // namespace content 2168 } // namespace content
OLDNEW
« content/renderer/render_view_impl.cc ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698