| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 11 #include "base/scoped_cftyperef.h" | 11 #include "base/scoped_cftyperef.h" |
| 12 #include "chrome/browser/cocoa/base_view.h" | 12 #include "chrome/browser/cocoa/base_view.h" |
| 13 #include "chrome/browser/tab_contents/web_contents_view.h" | 13 #include "chrome/browser/tab_contents/web_contents_view.h" |
| 14 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
| 15 | 15 |
| 16 class FindBarMac; | 16 class FindBarMac; |
| 17 @class SadTabView; | 17 @class SadTabView; |
| 18 class WebContentsViewMac; |
| 18 | 19 |
| 19 @interface WebContentsViewCocoa : BaseView { | 20 @interface WebContentsViewCocoa : BaseView { |
| 21 @private |
| 22 WebContentsViewMac* webContentsView_; // WEAK; owns us |
| 20 } | 23 } |
| 21 | 24 |
| 22 @end | 25 @end |
| 23 | 26 |
| 24 // Mac-specific implementation of the WebContentsView. It owns an NSView that | 27 // Mac-specific implementation of the WebContentsView. It owns an NSView that |
| 25 // contains all of the contents of the tab and associated child views. | 28 // contains all of the contents of the tab and associated child views. |
| 26 class WebContentsViewMac : public WebContentsView, | 29 class WebContentsViewMac : public WebContentsView, |
| 27 public NotificationObserver { | 30 public NotificationObserver { |
| 28 public: | 31 public: |
| 29 // The corresponding WebContents is passed in the constructor, and manages our | 32 // The corresponding WebContents is passed in the constructor, and manages our |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 NotificationRegistrar registrar_; | 101 NotificationRegistrar registrar_; |
| 99 | 102 |
| 100 // Used to render the sad tab. This will be non-NULL only when the sad tab is | 103 // Used to render the sad tab. This will be non-NULL only when the sad tab is |
| 101 // visible. | 104 // visible. |
| 102 scoped_cftyperef<SadTabView*> sad_tab_; | 105 scoped_cftyperef<SadTabView*> sad_tab_; |
| 103 | 106 |
| 104 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 107 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 110 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |