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

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

Issue 869563003: [Mac] Allow vibrancy & transparency on WebContentsView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 27 matching lines...) Expand all
38 CONTENT_EXPORT 38 CONTENT_EXPORT
39 @interface WebContentsViewCocoa : BaseView { 39 @interface WebContentsViewCocoa : BaseView {
40 @private 40 @private
41 content::WebContentsViewMac* webContentsView_; // WEAK; owns us 41 content::WebContentsViewMac* webContentsView_; // WEAK; owns us
42 base::scoped_nsobject<WebDragSource> dragSource_; 42 base::scoped_nsobject<WebDragSource> dragSource_;
43 base::scoped_nsobject<WebDragDest> dragDest_; 43 base::scoped_nsobject<WebDragDest> dragDest_;
44 BOOL mouseDownCanMoveWindow_; 44 BOOL mouseDownCanMoveWindow_;
45 } 45 }
46 46
47 - (void)setMouseDownCanMoveWindow:(BOOL)canMove; 47 - (void)setMouseDownCanMoveWindow:(BOOL)canMove;
48 - (void)setOpaque:(BOOL)opaque;
48 49
49 // Expose this, since sometimes one needs both the NSView and the 50 // Expose this, since sometimes one needs both the NSView and the
50 // WebContentsImpl. 51 // WebContentsImpl.
51 - (content::WebContentsImpl*)webContents; 52 - (content::WebContentsImpl*)webContents;
52 @end 53 @end
53 54
54 namespace content { 55 namespace content {
55 56
56 // Mac-specific implementation of the WebContentsView. It owns an NSView that 57 // Mac-specific implementation of the WebContentsView. It owns an NSView that
57 // contains all of the contents of the tab and associated child views. 58 // contains all of the contents of the tab and associated child views.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool allow_other_views_; 145 bool allow_other_views_;
145 146
146 scoped_ptr<PopupMenuHelper> popup_menu_helper_; 147 scoped_ptr<PopupMenuHelper> popup_menu_helper_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 149 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
149 }; 150 };
150 151
151 } // namespace content 152 } // namespace content
152 153
153 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698