Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: content/public/browser/web_contents_view_delegate_mac.h

Issue 507363002: MacViews: Guard Objective-C bits in content::WebContentsViewDelegate with __OBJC__ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content_browsertests Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698