OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/web_contents_view_delegate.h" |
| 12 |
| 13 @protocol RenderWidgetHostViewMacDelegate; |
| 14 |
| 15 namespace content { |
| 16 class RenderWidgetHost; |
| 17 |
| 18 // Mac version of WebContentsViewDelegate, to add delegate methods that require |
| 19 // an Objective C++ build. |
| 20 class CONTENT_EXPORT WebContentsViewDelegateMac |
| 21 : public WebContentsViewDelegate { |
| 22 public: |
| 23 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle |
| 24 // events on the responder chain. |
| 25 virtual NSObject<RenderWidgetHostViewMacDelegate>* |
| 26 CreateRenderWidgetHostViewDelegate( |
| 27 RenderWidgetHost* render_widget_host) = 0; |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_ |
OLD | NEW |