| Index: content/public/browser/web_contents_view_delegate_mac.h
|
| diff --git a/content/public/browser/web_contents_view_delegate_mac.h b/content/public/browser/web_contents_view_delegate_mac.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..db3668b5f9653ee967c1850d3a16df61417d6fba
|
| --- /dev/null
|
| +++ b/content/public/browser/web_contents_view_delegate_mac.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_
|
| +#define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_
|
| +
|
| +#import <Cocoa/Cocoa.h>
|
| +
|
| +#include "content/common/content_export.h"
|
| +#include "content/public/browser/web_contents_view_delegate.h"
|
| +
|
| +@protocol RenderWidgetHostViewMacDelegate;
|
| +
|
| +namespace content {
|
| +class RenderWidgetHost;
|
| +
|
| +// Mac version of WebContentsViewDelegate, to add delegate methods that require
|
| +// an Objective C++ build.
|
| +class CONTENT_EXPORT WebContentsViewDelegateMac
|
| + : public WebContentsViewDelegate {
|
| + public:
|
| + // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
|
| + // events on the responder chain.
|
| + virtual NSObject<RenderWidgetHostViewMacDelegate>*
|
| + CreateRenderWidgetHostViewDelegate(
|
| + RenderWidgetHost* render_widget_host) = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_MAC_H_
|
|
|