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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 2005663002: Make unload tests stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // the size of the RenderWidget itself changing. 211 // the size of the RenderWidget itself changing.
212 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0; 212 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0;
213 213
214 // Restart the active hang monitor timeout. Clears all existing timeouts and 214 // Restart the active hang monitor timeout. Clears all existing timeouts and
215 // starts with a new one. This can be because the renderer has become 215 // starts with a new one. This can be because the renderer has become
216 // active, the tab is being hidden, or the user has chosen to wait some more 216 // active, the tab is being hidden, or the user has chosen to wait some more
217 // to give the tab a chance to become active and we don't want to display a 217 // to give the tab a chance to become active and we don't want to display a
218 // warning too soon. 218 // warning too soon.
219 virtual void RestartHangMonitorTimeout() = 0; 219 virtual void RestartHangMonitorTimeout() = 0;
220 220
221 // Stops and disables hang monitor. That is needed for tests stability
222 // as under load this widget might not respond in time.
Charlie Reis 2016/05/23 17:03:30 nit: Let's rephrase the second sentence: This avo
223 virtual void DisableHangMonitorForTest() = 0;
224
221 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; 225 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0;
222 226
223 // Called to notify the RenderWidget that it has been resized. 227 // Called to notify the RenderWidget that it has been resized.
224 virtual void WasResized() = 0; 228 virtual void WasResized() = 0;
225 229
226 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended 230 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended
227 // only for test code. 231 // only for test code.
228 232
229 // Add/remove a callback that can handle key presses without requiring focus. 233 // Add/remove a callback that can handle key presses without requiring focus.
230 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> 234 typedef base::Callback<bool(const NativeWebKeyboardEvent&)>
(...skipping 13 matching lines...) Expand all
244 // Get the color profile corresponding to this render widget. 248 // Get the color profile corresponding to this render widget.
245 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; 249 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0;
246 250
247 // Sends a compositor proto to the render widget. 251 // Sends a compositor proto to the render widget.
248 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; 252 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
249 }; 253 };
250 254
251 } // namespace content 255 } // namespace content
252 256
253 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 257 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698