Index: ui/views_core/bridged_view_impl_mac.h |
diff --git a/ui/views_core/bridged_view_impl_mac.h b/ui/views_core/bridged_view_impl_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55317dc3b0be871dd9a411dfca14da851c9cdb1f |
--- /dev/null |
+++ b/ui/views_core/bridged_view_impl_mac.h |
@@ -0,0 +1,35 @@ |
+// 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 UI_VIEWS_CORE_BRIDGED_VIEW_IMPL_MAC_H_ |
+#define UI_VIEWS_CORE_BRIDGED_VIEW_IMPL_MAC_H_ |
+ |
+#include <Cocoa/Cocoa.h> |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/views/widget/native_widget_mac.h" |
+ |
+namespace views { |
+class NSViewBridge; |
+class NSViewBridgeWidget; |
+class View; |
+} |
+ |
+// The NSView that sits in Cocoa's view heirarchy and delegates drawing to the |
+// bridged views::View that it owns. |
+@interface BridgedViewImpl : NSView { |
+ @private |
+ scoped_ptr<views::NSViewBridgeWidget> widget_; |
+ scoped_ptr<views::NSViewBridge> bridge_; |
+ views::View* hostedView_; // Weak. Owned by |bridge_|. |
+} |
+ |
+@property(readonly, nonatomic) views::View* view; |
+ |
+- (id)initWithView:(scoped_ptr<views::View>)viewToHost; |
+- (void)clearView; |
+ |
+@end |
+ |
+#endif // UI_VIEWS_CORE_BRIDGED_VIEW_IMPL_MAC_H_ |