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

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: Address review, fix new tests 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_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 #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. This avoids flakiness in tests that need
222 // to observe things like beforeunload dialogs, which could fail if the
223 // timeout skips the dialog.
224 virtual void DisableHangMonitorForTesting() = 0;
225
221 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; 226 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0;
222 227
223 // Called to notify the RenderWidget that it has been resized. 228 // Called to notify the RenderWidget that it has been resized.
224 virtual void WasResized() = 0; 229 virtual void WasResized() = 0;
225 230
226 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended 231 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended
227 // only for test code. 232 // only for test code.
228 233
229 // Add/remove a callback that can handle key presses without requiring focus. 234 // Add/remove a callback that can handle key presses without requiring focus.
230 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> 235 typedef base::Callback<bool(const NativeWebKeyboardEvent&)>
(...skipping 13 matching lines...) Expand all
244 // Get the color profile corresponding to this render widget. 249 // Get the color profile corresponding to this render widget.
245 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; 250 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0;
246 251
247 // Sends a compositor proto to the render widget. 252 // Sends a compositor proto to the render widget.
248 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; 253 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
249 }; 254 };
250 255
251 } // namespace content 256 } // namespace content
252 257
253 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 258 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698