| OLD | NEW |
| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual bool IsLoading() const = 0; | 182 virtual bool IsLoading() const = 0; |
| 183 | 183 |
| 184 // Restart the active hang monitor timeout if the renderer is actively | 184 // Restart the active hang monitor timeout if the renderer is actively |
| 185 // waiting on a response. Clears all existing timeouts and starts with | 185 // waiting on a response. Clears all existing timeouts and starts with |
| 186 // a new one. This can be because the renderer has become | 186 // a new one. This can be because the renderer has become |
| 187 // active, the tab is being hidden, or the user has chosen to wait some more | 187 // active, the tab is being hidden, or the user has chosen to wait some more |
| 188 // to give the tab a chance to become active and we don't want to display a | 188 // to give the tab a chance to become active and we don't want to display a |
| 189 // warning too soon. | 189 // warning too soon. |
| 190 virtual void RestartHangMonitorTimeoutIfNecessary() = 0; | 190 virtual void RestartHangMonitorTimeoutIfNecessary() = 0; |
| 191 | 191 |
| 192 // Stops and disables hang monitor. This avoids flakiness in tests that need | |
| 193 // to observe things like beforeunload dialogs, which could fail if the | |
| 194 // timeout skips the dialog. | |
| 195 virtual void DisableHangMonitorForTesting() = 0; | |
| 196 | |
| 197 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; | 192 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; |
| 198 | 193 |
| 199 // Called to notify the RenderWidget that it has been resized. | 194 // Called to notify the RenderWidget that it has been resized. |
| 200 virtual void WasResized() = 0; | 195 virtual void WasResized() = 0; |
| 201 | 196 |
| 202 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended | 197 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended |
| 203 // only for test code. | 198 // only for test code. |
| 204 | 199 |
| 205 // Add/remove a callback that can handle key presses without requiring focus. | 200 // Add/remove a callback that can handle key presses without requiring focus. |
| 206 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> | 201 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // This allows the renderer to reset some state. | 261 // This allows the renderer to reset some state. |
| 267 virtual void DragSourceSystemDragEnded() {}; | 262 virtual void DragSourceSystemDragEnded() {}; |
| 268 | 263 |
| 269 // Filters drop data before it is passed to RenderWidgetHost. | 264 // Filters drop data before it is passed to RenderWidgetHost. |
| 270 virtual void FilterDropData(DropData* drop_data) {} | 265 virtual void FilterDropData(DropData* drop_data) {} |
| 271 }; | 266 }; |
| 272 | 267 |
| 273 } // namespace content | 268 } // namespace content |
| 274 | 269 |
| 275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 270 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |