OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // consistent if a new renderer is created. | 268 // consistent if a new renderer is created. |
269 void RendererExited(); | 269 void RendererExited(); |
270 | 270 |
271 // Retrieves the native view used to contain plugins. | 271 // Retrieves the native view used to contain plugins. |
272 gfx::NativeViewId GetPluginNativeViewId(); | 272 gfx::NativeViewId GetPluginNativeViewId(); |
273 | 273 |
274 // Called when we an InputEvent was not processed by the renderer. This is | 274 // Called when we an InputEvent was not processed by the renderer. This is |
275 // overridden by RenderView to send upwards to its delegate. | 275 // overridden by RenderView to send upwards to its delegate. |
276 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 276 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
277 | 277 |
278 // Notification that the user pressed the enter key or the spacebar. The | 278 // Notification that the user has made some kind of input that could |
279 // render view host overrides this to forward the information to its delegate | 279 // perform an action. The render view host overrides this to forward the |
280 // (see corresponding function in RenderViewHostDelegate). | 280 // information to its delegate (see corresponding function in |
281 virtual void OnEnterOrSpace() {} | 281 // RenderViewHostDelegate). The gestures that count are 1) any mouse down |
| 282 // event and 2) enter or space key presses. |
| 283 virtual void OnUserGesture() {} |
282 | 284 |
283 // Callbacks for notification when the renderer becomes unresponsive to user | 285 // Callbacks for notification when the renderer becomes unresponsive to user |
284 // input events, and subsequently responsive again. RenderViewHost overrides | 286 // input events, and subsequently responsive again. RenderViewHost overrides |
285 // these to tell its delegate to show the user a warning. | 287 // these to tell its delegate to show the user a warning. |
286 virtual void NotifyRendererUnresponsive() {} | 288 virtual void NotifyRendererUnresponsive() {} |
287 virtual void NotifyRendererResponsive() {} | 289 virtual void NotifyRendererResponsive() {} |
288 | 290 |
289 protected: | 291 protected: |
290 // true if a renderer has once been valid. We use this flag to display a sad | 292 // true if a renderer has once been valid. We use this flag to display a sad |
291 // tab only when we lose our renderer and not if a paint occurs during | 293 // tab only when we lose our renderer and not if a paint occurs during |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 424 |
423 // Set when we cancel updating the text direction. | 425 // Set when we cancel updating the text direction. |
424 // This flag also ignores succeeding update requests until we call | 426 // This flag also ignores succeeding update requests until we call |
425 // NotifyTextDirection(). | 427 // NotifyTextDirection(). |
426 bool text_direction_canceled_; | 428 bool text_direction_canceled_; |
427 | 429 |
428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
429 }; | 431 }; |
430 | 432 |
431 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 433 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |