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

Side by Side Diff: chrome/test/render_view_test.cc

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test/render_view_test.h" 5 #include "chrome/test/render_view_test.h"
6 6
7 #include "chrome/browser/extensions/extension_function_dispatcher.h" 7 #include "chrome/browser/extensions/extension_function_dispatcher.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "chrome/common/print_messages.h" 9 #include "chrome/common/print_messages.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 extension_dispatcher_)); 119 extension_dispatcher_));
120 EventBindings::SetRenderThread(&render_thread_); 120 EventBindings::SetRenderThread(&render_thread_);
121 121
122 mock_process_.reset(new MockRenderProcess); 122 mock_process_.reset(new MockRenderProcess);
123 123
124 render_thread_.set_routing_id(kRouteId); 124 render_thread_.set_routing_id(kRouteId);
125 125
126 // This needs to pass the mock render thread to the view. 126 // This needs to pass the mock render thread to the view.
127 view_ = RenderView::Create(&render_thread_, 127 view_ = RenderView::Create(&render_thread_,
128 0, 128 0,
129 gfx::kNullPluginWindow,
130 kOpenerId, 129 kOpenerId,
131 RendererPreferences(), 130 RendererPreferences(),
132 WebPreferences(), 131 WebPreferences(),
133 new SharedRenderViewCounter(0), 132 new SharedRenderViewCounter(0),
134 kRouteId, 133 kRouteId,
135 kInvalidSessionStorageNamespaceId, 134 kInvalidSessionStorageNamespaceId,
136 string16()); 135 string16());
137 136
138 // Attach a pseudo keyboard device to this object. 137 // Attach a pseudo keyboard device to this object.
139 mock_keyboard_.reset(new MockKeyboard()); 138 mock_keyboard_.reset(new MockKeyboard());
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 mouse_event.x = bounds.CenterPoint().x(); 313 mouse_event.x = bounds.CenterPoint().x();
315 mouse_event.y = bounds.CenterPoint().y(); 314 mouse_event.y = bounds.CenterPoint().y();
316 mouse_event.clickCount = 1; 315 mouse_event.clickCount = 1;
317 ViewMsg_HandleInputEvent input_event(0); 316 ViewMsg_HandleInputEvent input_event(0);
318 scoped_ptr<IPC::Message> input_message(new ViewMsg_HandleInputEvent(0)); 317 scoped_ptr<IPC::Message> input_message(new ViewMsg_HandleInputEvent(0));
319 input_message->WriteData(reinterpret_cast<const char*>(&mouse_event), 318 input_message->WriteData(reinterpret_cast<const char*>(&mouse_event),
320 sizeof(WebMouseEvent)); 319 sizeof(WebMouseEvent));
321 view_->OnMessageReceived(*input_message); 320 view_->OnMessageReceived(*input_message);
322 return true; 321 return true;
323 } 322 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698