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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_mac.h

Issue 7717011: Get rid of static TabContentsView::Create function since the interface is in content, but the imp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix mac build Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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__)
10
9 #import <Cocoa/Cocoa.h> 11 #import <Cocoa/Cocoa.h>
10 12
11 #include <string> 13 #include <string>
12 #include <vector> 14 #include <vector>
13 15
14 #include "base/memory/scoped_nsobject.h" 16 #include "base/memory/scoped_nsobject.h"
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 18 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
17 #include "chrome/browser/ui/cocoa/base_view.h" 19 #include "chrome/browser/ui/cocoa/base_view.h"
18 #include "content/browser/tab_contents/tab_contents_view.h" 20 #include "content/browser/tab_contents/tab_contents_view.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 143
142 // The context menu. Callbacks are asynchronous so we need to keep it around. 144 // The context menu. Callbacks are asynchronous so we need to keep it around.
143 scoped_ptr<RenderViewContextMenuMac> context_menu_; 145 scoped_ptr<RenderViewContextMenuMac> context_menu_;
144 146
145 // The page content's intrinsic width. 147 // The page content's intrinsic width.
146 int preferred_width_; 148 int preferred_width_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); 150 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac);
149 }; 151 };
150 152
153 #endif // __OBJC__
154
155 // Functions that may be accessed from non-Objective-C C/C++ code.
156 class TabContents;
157 class TabContentsView;
158
159 namespace tab_contents_view_mac {
160 TabContentsView* CreateTabContentsView(TabContents* tab_contents);
161 }
162
151 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 163 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698