OLD | NEW |
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 "content/test/mock_render_thread.h" | 5 #include "content/test/mock_render_thread.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
10 #include "ipc/ipc_sync_message.h" | 10 #include "ipc/ipc_sync_message.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 134 } |
135 | 135 |
136 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { | 136 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { |
137 return 0; | 137 return 0; |
138 } | 138 } |
139 | 139 |
140 void MockRenderThread::SetIdleNotificationDelayInMs( | 140 void MockRenderThread::SetIdleNotificationDelayInMs( |
141 int64 idle_notification_delay_in_ms) { | 141 int64 idle_notification_delay_in_ms) { |
142 } | 142 } |
143 | 143 |
| 144 void MockRenderThread::PostponeIdleNotification() { |
| 145 } |
| 146 |
144 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
145 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { | 148 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { |
146 } | 149 } |
147 | 150 |
148 void MockRenderThread::ReleaseCachedFonts() { | 151 void MockRenderThread::ReleaseCachedFonts() { |
149 } | 152 } |
150 | 153 |
151 #endif // OS_WIN | 154 #endif // OS_WIN |
152 | 155 |
153 void MockRenderThread::SendCloseMessage() { | 156 void MockRenderThread::SendCloseMessage() { |
(...skipping 26 matching lines...) Expand all Loading... |
180 void MockRenderThread::OnDuplicateSection( | 183 void MockRenderThread::OnDuplicateSection( |
181 base::SharedMemoryHandle renderer_handle, | 184 base::SharedMemoryHandle renderer_handle, |
182 base::SharedMemoryHandle* browser_handle) { | 185 base::SharedMemoryHandle* browser_handle) { |
183 // We don't have to duplicate the input handles since RenderViewTest does not | 186 // We don't have to duplicate the input handles since RenderViewTest does not |
184 // separate a browser process from a renderer process. | 187 // separate a browser process from a renderer process. |
185 *browser_handle = renderer_handle; | 188 *browser_handle = renderer_handle; |
186 } | 189 } |
187 #endif // defined(OS_WIN) | 190 #endif // defined(OS_WIN) |
188 | 191 |
189 } // namespace content | 192 } // namespace content |
OLD | NEW |