| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEW_HOST_H__ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 13 #include "chrome/browser/renderer_host/render_widget_host.h" | 13 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 14 #include "chrome/common/modal_dialog_event.h" | 14 #include "chrome/common/modal_dialog_event.h" |
| 15 #include "chrome/common/page_zoom.h" | 15 #include "chrome/common/page_zoom.h" |
| 16 #ifdef CHROME_PERSONALIZATION | 16 #ifdef CHROME_PERSONALIZATION |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // RenderWidgetHost public overrides. | 421 // RenderWidgetHost public overrides. |
| 422 virtual void Init(); | 422 virtual void Init(); |
| 423 virtual void Shutdown(); | 423 virtual void Shutdown(); |
| 424 virtual bool IsRenderView() { return true; } | 424 virtual bool IsRenderView() { return true; } |
| 425 virtual void OnMessageReceived(const IPC::Message& msg); | 425 virtual void OnMessageReceived(const IPC::Message& msg); |
| 426 virtual bool CanBlur() const; | 426 virtual bool CanBlur() const; |
| 427 virtual gfx::Rect GetRootWindowResizerRect() const; | 427 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 428 | 428 |
| 429 protected: | 429 protected: |
| 430 // RenderWidgetHost protected overrides. | 430 // RenderWidgetHost protected overrides. |
| 431 virtual void UnhandledKeyboardEvent(const WebKeyboardEvent& event); | 431 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 432 virtual void OnEnterOrSpace(); | 432 virtual void OnEnterOrSpace(); |
| 433 virtual void NotifyRendererUnresponsive(); | 433 virtual void NotifyRendererUnresponsive(); |
| 434 virtual void NotifyRendererResponsive(); | 434 virtual void NotifyRendererResponsive(); |
| 435 | 435 |
| 436 // IPC message handlers. | 436 // IPC message handlers. |
| 437 void OnMsgCreateWindow(int route_id, ModalDialogEvent modal_dialog_event); | 437 void OnMsgCreateWindow(int route_id, ModalDialogEvent modal_dialog_event); |
| 438 void OnMsgCreateWidget(int route_id, bool activatable); | 438 void OnMsgCreateWidget(int route_id, bool activatable); |
| 439 void OnMsgShowView(int route_id, | 439 void OnMsgShowView(int route_id, |
| 440 WindowOpenDisposition disposition, | 440 WindowOpenDisposition disposition, |
| 441 const gfx::Rect& initial_pos, | 441 const gfx::Rect& initial_pos, |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 public: | 635 public: |
| 636 virtual ~RenderViewHostFactory() {} | 636 virtual ~RenderViewHostFactory() {} |
| 637 | 637 |
| 638 virtual RenderViewHost* CreateRenderViewHost( | 638 virtual RenderViewHost* CreateRenderViewHost( |
| 639 SiteInstance* instance, | 639 SiteInstance* instance, |
| 640 RenderViewHostDelegate* delegate, | 640 RenderViewHostDelegate* delegate, |
| 641 int routing_id, | 641 int routing_id, |
| 642 base::WaitableEvent* modal_dialog_event) = 0; | 642 base::WaitableEvent* modal_dialog_event) = 0; |
| 643 }; | 643 }; |
| 644 | 644 |
| 645 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 645 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |