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

Side by Side Diff: content/test/mock_render_thread.cc

Issue 10690023: Upstream support for WebKit shared timer toggling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/renderer/render_thread_impl.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) 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/public/test/mock_render_thread.h" 5 #include "content/public/test/mock_render_thread.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { 160 int64 MockRenderThread::GetIdleNotificationDelayInMs() const {
161 return 0; 161 return 0;
162 } 162 }
163 163
164 void MockRenderThread::SetIdleNotificationDelayInMs( 164 void MockRenderThread::SetIdleNotificationDelayInMs(
165 int64 idle_notification_delay_in_ms) { 165 int64 idle_notification_delay_in_ms) {
166 } 166 }
167 167
168 void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) {
169 }
170
171 void MockRenderThread::UpdateHistograms(int sequence_number) {
172 }
173
168 #if defined(OS_WIN) 174 #if defined(OS_WIN)
169 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 175 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
170 } 176 }
171 177
172 void MockRenderThread::ReleaseCachedFonts() { 178 void MockRenderThread::ReleaseCachedFonts() {
173 } 179 }
174 180
175 #endif // OS_WIN 181 #endif // OS_WIN
176 182
177 void MockRenderThread::UpdateHistograms(int sequence_number) {
178 }
179
180 void MockRenderThread::SendCloseMessage() { 183 void MockRenderThread::SendCloseMessage() {
181 ViewMsg_Close msg(routing_id_); 184 ViewMsg_Close msg(routing_id_);
182 widget_->OnMessageReceived(msg); 185 widget_->OnMessageReceived(msg);
183 } 186 }
184 187
185 // The Widget expects to be returned valid route_id. 188 // The Widget expects to be returned valid route_id.
186 void MockRenderThread::OnMsgCreateWidget(int opener_id, 189 void MockRenderThread::OnMsgCreateWidget(int opener_id,
187 WebKit::WebPopupType popup_type, 190 WebKit::WebPopupType popup_type,
188 int* route_id, 191 int* route_id,
189 int* surface_id) { 192 int* surface_id) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void MockRenderThread::OnDuplicateSection( 224 void MockRenderThread::OnDuplicateSection(
222 base::SharedMemoryHandle renderer_handle, 225 base::SharedMemoryHandle renderer_handle,
223 base::SharedMemoryHandle* browser_handle) { 226 base::SharedMemoryHandle* browser_handle) {
224 // We don't have to duplicate the input handles since RenderViewTest does not 227 // We don't have to duplicate the input handles since RenderViewTest does not
225 // separate a browser process from a renderer process. 228 // separate a browser process from a renderer process.
226 *browser_handle = renderer_handle; 229 *browser_handle = renderer_handle;
227 } 230 }
228 #endif // defined(OS_WIN) 231 #endif // defined(OS_WIN)
229 232
230 } // namespace content 233 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698