OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 #include "ui/base/cocoa/base_view.h" | 22 #include "ui/base/cocoa/base_view.h" |
23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
24 | 24 |
25 @class FocusTracker; | 25 @class FocusTracker; |
26 class RenderViewContextMenuMac; | 26 class RenderViewContextMenuMac; |
27 @class SadTabController; | 27 @class SadTabController; |
28 class SkBitmap; | 28 class SkBitmap; |
29 class TabContentsViewMac; | 29 class TabContentsViewMac; |
30 class WebDragBookmarkHandlerMac; | 30 class WebDragBookmarkHandlerMac; |
| 31 @class WebDragDest; |
31 @class WebDragSource; | 32 @class WebDragSource; |
32 @class WebDropTarget; | |
33 namespace gfx { | 33 namespace gfx { |
34 class Point; | 34 class Point; |
35 } | 35 } |
36 | 36 |
37 @interface TabContentsViewCocoa : BaseView { | 37 @interface TabContentsViewCocoa : BaseView { |
38 @private | 38 @private |
39 TabContentsViewMac* tabContentsView_; // WEAK; owns us | 39 TabContentsViewMac* tabContentsView_; // WEAK; owns us |
40 scoped_nsobject<WebDragSource> dragSource_; | 40 scoped_nsobject<WebDragSource> dragSource_; |
41 scoped_nsobject<WebDropTarget> dropTarget_; | 41 scoped_nsobject<WebDragDest> dropTarget_; |
42 scoped_ptr<WebDragBookmarkHandlerMac> bookmarkHandler_; | 42 scoped_ptr<WebDragBookmarkHandlerMac> bookmarkHandler_; |
43 } | 43 } |
44 | 44 |
45 // Expose this, since sometimes one needs both the NSView and the TabContents. | 45 // Expose this, since sometimes one needs both the NSView and the TabContents. |
46 - (TabContents*)tabContents; | 46 - (TabContents*)tabContents; |
47 @end | 47 @end |
48 | 48 |
49 // Mac-specific implementation of the TabContentsView. It owns an NSView that | 49 // Mac-specific implementation of the TabContentsView. It owns an NSView that |
50 // contains all of the contents of the tab and associated child views. | 50 // contains all of the contents of the tab and associated child views. |
51 class TabContentsViewMac : public TabContentsView, | 51 class TabContentsViewMac : public TabContentsView, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Functions that may be accessed from non-Objective-C C/C++ code. | 156 // Functions that may be accessed from non-Objective-C C/C++ code. |
157 class TabContents; | 157 class TabContents; |
158 class TabContentsView; | 158 class TabContentsView; |
159 | 159 |
160 namespace tab_contents_view_mac { | 160 namespace tab_contents_view_mac { |
161 TabContentsView* CreateTabContentsView(TabContents* tab_contents); | 161 TabContentsView* CreateTabContentsView(TabContents* tab_contents); |
162 } | 162 } |
163 | 163 |
164 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 164 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |