| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class RenderProcessHost; | 32 class RenderProcessHost; |
| 33 class RenderViewHost; | 33 class RenderViewHost; |
| 34 class SkBitmap; | 34 class SkBitmap; |
| 35 class TabContents; | 35 class TabContents; |
| 36 struct ViewHostMsg_CreateWindow_Params; | 36 struct ViewHostMsg_CreateWindow_Params; |
| 37 struct ViewHostMsg_FrameNavigate_Params; | 37 struct ViewHostMsg_FrameNavigate_Params; |
| 38 struct WebDropData; | 38 struct WebDropData; |
| 39 struct WebMenuItem; | 39 struct WebMenuItem; |
| 40 class WebKeyboardEvent; | 40 class WebKeyboardEvent; |
| 41 struct WebPreferences; | 41 struct WebPreferences; |
| 42 struct ViewHostMsg_RunFileChooser_Params; |
| 42 | 43 |
| 43 namespace content { | 44 namespace content { |
| 44 class BrowserContext; | 45 class BrowserContext; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace gfx { | 48 namespace gfx { |
| 48 class Point; | 49 class Point; |
| 49 class Rect; | 50 class Rect; |
| 50 class Size; | 51 class Size; |
| 51 } | 52 } |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 360 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 360 | 361 |
| 361 // Notifications about mouse events in this view. This is useful for | 362 // Notifications about mouse events in this view. This is useful for |
| 362 // implementing global 'on hover' features external to the view. | 363 // implementing global 'on hover' features external to the view. |
| 363 virtual void HandleMouseMove() {} | 364 virtual void HandleMouseMove() {} |
| 364 virtual void HandleMouseDown() {} | 365 virtual void HandleMouseDown() {} |
| 365 virtual void HandleMouseLeave() {} | 366 virtual void HandleMouseLeave() {} |
| 366 virtual void HandleMouseUp() {} | 367 virtual void HandleMouseUp() {} |
| 367 virtual void HandleMouseActivate() {} | 368 virtual void HandleMouseActivate() {} |
| 368 | 369 |
| 370 // Called when a file selection is to be done. |
| 371 virtual void RunFileChooser( |
| 372 RenderViewHost* render_view_host, |
| 373 const ViewHostMsg_RunFileChooser_Params& params) {} |
| 374 |
| 369 protected: | 375 protected: |
| 370 virtual ~RenderViewHostDelegate() {} | 376 virtual ~RenderViewHostDelegate() {} |
| 371 }; | 377 }; |
| 372 | 378 |
| 373 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 379 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |