| 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 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/memory/scoped_nsobject.h" | 14 #include "base/memory/scoped_nsobject.h" |
| 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "chrome/browser/ui/cocoa/base_view.h" | 16 #include "chrome/browser/ui/cocoa/base_view.h" |
| 16 #include "content/browser/tab_contents/tab_contents_view.h" | 17 #include "content/browser/tab_contents/tab_contents_view.h" |
| 17 #include "content/common/notification_observer.h" | 18 #include "content/common/notification_observer.h" |
| 18 #include "content/common/notification_registrar.h" | 19 #include "content/common/notification_registrar.h" |
| 19 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
| 20 | 21 |
| 21 @class FocusTracker; | 22 @class FocusTracker; |
| 23 class RenderViewContextMenuMac; |
| 22 @class SadTabController; | 24 @class SadTabController; |
| 23 class SkBitmap; | 25 class SkBitmap; |
| 24 class TabContentsViewMac; | 26 class TabContentsViewMac; |
| 25 @class WebDragSource; | 27 @class WebDragSource; |
| 26 @class WebDropTarget; | 28 @class WebDropTarget; |
| 27 namespace gfx { | 29 namespace gfx { |
| 28 class Point; | 30 class Point; |
| 29 } | 31 } |
| 30 | 32 |
| 31 @interface TabContentsViewCocoa : BaseView { | 33 @interface TabContentsViewCocoa : BaseView { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // focus returns. | 120 // focus returns. |
| 119 scoped_nsobject<FocusTracker> focus_tracker_; | 121 scoped_nsobject<FocusTracker> focus_tracker_; |
| 120 | 122 |
| 121 // Used to get notifications about renderers coming and going. | 123 // Used to get notifications about renderers coming and going. |
| 122 NotificationRegistrar registrar_; | 124 NotificationRegistrar registrar_; |
| 123 | 125 |
| 124 // Used to render the sad tab. This will be non-NULL only when the sad tab is | 126 // Used to render the sad tab. This will be non-NULL only when the sad tab is |
| 125 // visible. | 127 // visible. |
| 126 scoped_nsobject<SadTabController> sad_tab_; | 128 scoped_nsobject<SadTabController> sad_tab_; |
| 127 | 129 |
| 130 // The context menu. Callbacks are asynchronous so we need to keep it around. |
| 131 scoped_ptr<RenderViewContextMenuMac> context_menu_; |
| 132 |
| 128 // The page content's intrinsic width. | 133 // The page content's intrinsic width. |
| 129 int preferred_width_; | 134 int preferred_width_; |
| 130 | 135 |
| 131 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); | 136 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); |
| 132 }; | 137 }; |
| 133 | 138 |
| 134 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ | 139 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |