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

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

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_widget.h" 5 #include "chrome/renderer/render_widget.h"
6 6
7 #include "app/surface/transport_dib.h" 7 #include "app/surface/transport_dib.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 Send(new ViewHostMsg_RenderViewReady(routing_id_)); 163 Send(new ViewHostMsg_RenderViewReady(routing_id_));
164 } 164 }
165 165
166 IPC_DEFINE_MESSAGE_MAP(RenderWidget) 166 IPC_DEFINE_MESSAGE_MAP(RenderWidget)
167 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 167 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
168 IPC_MESSAGE_HANDLER(ViewMsg_CreatingNew_ACK, OnCreatingNewAck) 168 IPC_MESSAGE_HANDLER(ViewMsg_CreatingNew_ACK, OnCreatingNewAck)
169 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize) 169 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize)
170 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) 170 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden)
171 IPC_MESSAGE_HANDLER(ViewMsg_WasRestored, OnWasRestored) 171 IPC_MESSAGE_HANDLER(ViewMsg_WasRestored, OnWasRestored)
172 IPC_MESSAGE_HANDLER(ViewMsg_UpdateRect_ACK, OnUpdateRectAck) 172 IPC_MESSAGE_HANDLER(ViewMsg_UpdateRect_ACK, OnUpdateRectAck)
173 IPC_MESSAGE_HANDLER(ViewMsg_CreateVideo_ACK, OnCreateVideoAck)
174 IPC_MESSAGE_HANDLER(ViewMsg_UpdateVideo_ACK, OnUpdateVideoAck)
175 IPC_MESSAGE_HANDLER(ViewMsg_HandleInputEvent, OnHandleInputEvent) 173 IPC_MESSAGE_HANDLER(ViewMsg_HandleInputEvent, OnHandleInputEvent)
176 IPC_MESSAGE_HANDLER(ViewMsg_MouseCaptureLost, OnMouseCaptureLost) 174 IPC_MESSAGE_HANDLER(ViewMsg_MouseCaptureLost, OnMouseCaptureLost)
177 IPC_MESSAGE_HANDLER(ViewMsg_SetFocus, OnSetFocus) 175 IPC_MESSAGE_HANDLER(ViewMsg_SetFocus, OnSetFocus)
178 IPC_MESSAGE_HANDLER(ViewMsg_SetInputMethodActive, OnSetInputMethodActive) 176 IPC_MESSAGE_HANDLER(ViewMsg_SetInputMethodActive, OnSetInputMethodActive)
179 IPC_MESSAGE_HANDLER(ViewMsg_ImeSetComposition, OnImeSetComposition) 177 IPC_MESSAGE_HANDLER(ViewMsg_ImeSetComposition, OnImeSetComposition)
180 IPC_MESSAGE_HANDLER(ViewMsg_ImeConfirmComposition, OnImeConfirmComposition) 178 IPC_MESSAGE_HANDLER(ViewMsg_ImeConfirmComposition, OnImeConfirmComposition)
181 IPC_MESSAGE_HANDLER(ViewMsg_PaintAtSize, OnMsgPaintAtSize) 179 IPC_MESSAGE_HANDLER(ViewMsg_PaintAtSize, OnMsgPaintAtSize)
182 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnMsgRepaint) 180 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnMsgRepaint)
183 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) 181 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
184 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) 182 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 current_paint_buf_ = NULL; 308 current_paint_buf_ = NULL;
311 } 309 }
312 310
313 // Notify subclasses. 311 // Notify subclasses.
314 DidFlushPaint(); 312 DidFlushPaint();
315 313
316 // Continue painting if necessary... 314 // Continue painting if necessary...
317 CallDoDeferredUpdate(); 315 CallDoDeferredUpdate();
318 } 316 }
319 317
320 void RenderWidget::OnCreateVideoAck(int32 video_id) {
321 // TODO(scherkus): handle CreateVideo_ACK with a message filter.
322 }
323
324 void RenderWidget::OnUpdateVideoAck(int32 video_id) {
325 // TODO(scherkus): handle UpdateVideo_ACK with a message filter.
326 }
327
328 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { 318 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) {
329 void* iter = NULL; 319 void* iter = NULL;
330 320
331 const char* data; 321 const char* data;
332 int data_length; 322 int data_length;
333 handling_input_event_ = true; 323 handling_input_event_ = true;
334 if (!message.ReadData(&iter, &data, &data_length)) { 324 if (!message.ReadData(&iter, &data, &data_length)) {
335 handling_input_event_ = false; 325 handling_input_event_ = false;
336 return; 326 return;
337 } 327 }
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 1003
1014 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { 1004 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
1015 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); 1005 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin();
1016 i != plugin_window_moves_.end(); ++i) { 1006 i != plugin_window_moves_.end(); ++i) {
1017 if (i->window == window) { 1007 if (i->window == window) {
1018 plugin_window_moves_.erase(i); 1008 plugin_window_moves_.erase(i);
1019 break; 1009 break;
1020 } 1010 }
1021 } 1011 }
1022 } 1012 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698