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

Side by Side Diff: content/browser/web_contents/web_contents_view_mac.h

Issue 10409029: Add a factory function to create WebContentsView implementations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__)
10
11 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
12 10
13 #include <string> 11 #include <string>
14 #include <vector> 12 #include <vector>
15 13
16 #include "base/memory/scoped_nsobject.h" 14 #include "base/memory/scoped_nsobject.h"
17 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
18 #include "content/browser/web_contents/web_contents_view_helper.h" 16 #include "content/browser/web_contents/web_contents_view_helper.h"
19 #include "content/public/browser/web_contents_view.h" 17 #include "content/public/browser/web_contents_view.h"
20 #include "ui/base/cocoa/base_view.h" 18 #include "ui/base/cocoa/base_view.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Keeps track of which NSView has focus so we can restore the focus when 130 // Keeps track of which NSView has focus so we can restore the focus when
133 // focus returns. 131 // focus returns.
134 scoped_nsobject<FocusTracker> focus_tracker_; 132 scoped_nsobject<FocusTracker> focus_tracker_;
135 133
136 // Our optional delegate. 134 // Our optional delegate.
137 scoped_ptr<content::WebContentsViewDelegate> delegate_; 135 scoped_ptr<content::WebContentsViewDelegate> delegate_;
138 136
139 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
140 }; 138 };
141 139
142 #endif // __OBJC__
143
144 // Functions that may be accessed from non-Objective-C C/C++ code.
145 namespace content {
146 class WebContents;
147 class WebContentsView;
148 class WebContentsViewDelegate;
149 }
150
151 namespace web_contents_view_mac {
152 // Creates a WebContentsViewMac. Takes ownership of |delegate|.
153 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView(
154 WebContentsImpl* web_contents,
155 content::WebContentsViewDelegate* delegate);
156 }
157
158 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 140 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_gtk.cc ('k') | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698