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_WEB_CONTENTS_VIEW_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ |
7 | 7 |
8 #if defined(__OBJC__) | 8 #if defined(__OBJC__) |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 #if defined(__OBJC__) | 16 #if defined(__OBJC__) |
17 @protocol RenderWidgetHostViewMacDelegate; | 17 @protocol RenderWidgetHostViewMacDelegate; |
18 #endif | 18 #endif |
19 | 19 |
20 namespace gfx { | 20 namespace gfx { |
21 class Rect; | |
22 class Size; | 21 class Size; |
23 } | 22 } |
24 | 23 |
25 namespace ui { | |
26 class GestureEvent; | |
27 class MouseEvent; | |
28 } | |
29 | |
30 namespace content { | 24 namespace content { |
31 class RenderFrameHost; | 25 class RenderFrameHost; |
32 class RenderWidgetHost; | 26 class RenderWidgetHost; |
33 class WebDragDestDelegate; | 27 class WebDragDestDelegate; |
34 struct ContextMenuParams; | 28 struct ContextMenuParams; |
35 | 29 |
36 // This interface allows a client to extend the functionality of the | 30 // This interface allows a client to extend the functionality of the |
37 // WebContentsView implementation. | 31 // WebContentsView implementation. |
38 class CONTENT_EXPORT WebContentsViewDelegate { | 32 class CONTENT_EXPORT WebContentsViewDelegate { |
39 public: | 33 public: |
(...skipping 27 matching lines...) Expand all Loading... |
67 RenderWidgetHost* render_widget_host); | 61 RenderWidgetHost* render_widget_host); |
68 #else | 62 #else |
69 virtual void* CreateRenderWidgetHostViewDelegate( | 63 virtual void* CreateRenderWidgetHostViewDelegate( |
70 RenderWidgetHost* render_widget_host); | 64 RenderWidgetHost* render_widget_host); |
71 #endif | 65 #endif |
72 }; | 66 }; |
73 | 67 |
74 } // namespace content | 68 } // namespace content |
75 | 69 |
76 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ | 70 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ |
OLD | NEW |