| 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 |
| 11 #include "base/gfx/native_widget_types.h" |
| 11 #include "base/gfx/size.h" | 12 #include "base/gfx/size.h" |
| 12 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 13 #include "base/timer.h" | 14 #include "base/timer.h" |
| 14 #include "chrome/common/ipc_channel.h" | 15 #include "chrome/common/ipc_channel.h" |
| 15 #include "chrome/common/native_web_keyboard_event.h" | 16 #include "chrome/common/native_web_keyboard_event.h" |
| 16 #include "testing/gtest/include/gtest/gtest_prod.h" | 17 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 17 #include "webkit/glue/webtextdirection.h" | 18 #include "webkit/glue/webtextdirection.h" |
| 18 | 19 |
| 19 namespace gfx { | 20 namespace gfx { |
| 20 class Rect; | 21 class Rect; |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 protected: | 261 protected: |
| 261 // Internal implementation of the public Forward*Event() methods. | 262 // Internal implementation of the public Forward*Event() methods. |
| 262 void ForwardInputEvent( | 263 void ForwardInputEvent( |
| 263 const WebKit::WebInputEvent& input_event, int event_size); | 264 const WebKit::WebInputEvent& input_event, int event_size); |
| 264 | 265 |
| 265 // Called when we receive a notification indicating that the renderer | 266 // Called when we receive a notification indicating that the renderer |
| 266 // process has gone. This will reset our state so that our state will be | 267 // process has gone. This will reset our state so that our state will be |
| 267 // consistent if a new renderer is created. | 268 // consistent if a new renderer is created. |
| 268 void RendererExited(); | 269 void RendererExited(); |
| 269 | 270 |
| 271 // Retrieves the native view used to contain plugins. |
| 272 gfx::NativeViewId GetPluginNativeViewId(); |
| 273 |
| 270 // 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 |
| 271 // overridden by RenderView to send upwards to its delegate. | 275 // overridden by RenderView to send upwards to its delegate. |
| 272 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 276 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 273 | 277 |
| 274 // Notification that the user pressed the enter key or the spacebar. The | 278 // Notification that the user pressed the enter key or the spacebar. The |
| 275 // render view host overrides this to forward the information to its delegate | 279 // render view host overrides this to forward the information to its delegate |
| 276 // (see corresponding function in RenderViewHostDelegate). | 280 // (see corresponding function in RenderViewHostDelegate). |
| 277 virtual void OnEnterOrSpace() {} | 281 virtual void OnEnterOrSpace() {} |
| 278 | 282 |
| 279 // Callbacks for notification when the renderer becomes unresponsive to user | 283 // Callbacks for notification when the renderer becomes unresponsive to user |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 422 |
| 419 // Set when we cancel updating the text direction. | 423 // Set when we cancel updating the text direction. |
| 420 // This flag also ignores succeeding update requests until we call | 424 // This flag also ignores succeeding update requests until we call |
| 421 // NotifyTextDirection(). | 425 // NotifyTextDirection(). |
| 422 bool text_direction_canceled_; | 426 bool text_direction_canceled_; |
| 423 | 427 |
| 424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 425 }; | 429 }; |
| 426 | 430 |
| 427 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 431 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |