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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // Restart the active hang monitor timeout. Clears all existing timeouts and | 223 // Restart the active hang monitor timeout. Clears all existing timeouts and |
224 // starts with a new one. This can be because the renderer has become | 224 // starts with a new one. This can be because the renderer has become |
225 // active, the tab is being hidden, or the user has chosen to wait some more | 225 // active, the tab is being hidden, or the user has chosen to wait some more |
226 // to give the tab a chance to become active and we don't want to display a | 226 // to give the tab a chance to become active and we don't want to display a |
227 // warning too soon. | 227 // warning too soon. |
228 virtual void RestartHangMonitorTimeout() = 0; | 228 virtual void RestartHangMonitorTimeout() = 0; |
229 | 229 |
230 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; | 230 virtual void SetIgnoreInputEvents(bool ignore_input_events) = 0; |
231 | 231 |
232 // Stops loading the page. | |
233 virtual void Stop() = 0; | |
234 | |
235 // Called to notify the RenderWidget that it has been resized. | 232 // Called to notify the RenderWidget that it has been resized. |
236 virtual void WasResized() = 0; | 233 virtual void WasResized() = 0; |
237 | 234 |
238 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended | 235 // Access to the implementation's IPC::Listener::OnMessageReceived. Intended |
239 // only for test code. | 236 // only for test code. |
240 | 237 |
241 // Add/remove a callback that can handle key presses without requiring focus. | 238 // Add/remove a callback that can handle key presses without requiring focus. |
242 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> | 239 typedef base::Callback<bool(const NativeWebKeyboardEvent&)> |
243 KeyPressEventCallback; | 240 KeyPressEventCallback; |
244 virtual void AddKeyPressEventCallback( | 241 virtual void AddKeyPressEventCallback( |
(...skipping 18 matching lines...) Expand all Loading... |
263 // within content/. This method is necessary because | 260 // within content/. This method is necessary because |
264 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 261 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
265 // subclasses inherit it virtually, which removes our ability to | 262 // subclasses inherit it virtually, which removes our ability to |
266 // static_cast to the subclass. | 263 // static_cast to the subclass. |
267 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 264 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
268 }; | 265 }; |
269 | 266 |
270 } // namespace content | 267 } // namespace content |
271 | 268 |
272 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 269 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
OLD | NEW |