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

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

Issue 1850483002: Explicitly declare a method in WebContentsViewCocoa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // is possible for an instance to outlive its webContentsView_. The 43 // is possible for an instance to outlive its webContentsView_. The
44 // webContentsView_ must call -clearWebContentsView in its destructor. 44 // webContentsView_ must call -clearWebContentsView in its destructor.
45 content::WebContentsViewMac* webContentsView_; 45 content::WebContentsViewMac* webContentsView_;
46 base::scoped_nsobject<WebDragSource> dragSource_; 46 base::scoped_nsobject<WebDragSource> dragSource_;
47 base::scoped_nsobject<WebDragDest> dragDest_; 47 base::scoped_nsobject<WebDragDest> dragDest_;
48 BOOL mouseDownCanMoveWindow_; 48 BOOL mouseDownCanMoveWindow_;
49 } 49 }
50 50
51 - (void)setMouseDownCanMoveWindow:(BOOL)canMove; 51 - (void)setMouseDownCanMoveWindow:(BOOL)canMove;
52 - (void)setOpaque:(BOOL)opaque; 52 - (void)setOpaque:(BOOL)opaque;
53
54 // Returns the available drag operations. This is a required method for
55 // NSDraggingSource. It is supposedly deprecated, but the non-deprecated API
56 // -[NSWindow dragImage:...] still relies on it.
57 - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal;
53 @end 58 @end
54 59
55 namespace content { 60 namespace content {
56 61
57 // Mac-specific implementation of the WebContentsView. It owns an NSView that 62 // Mac-specific implementation of the WebContentsView. It owns an NSView that
58 // contains all of the contents of the tab and associated child views. 63 // contains all of the contents of the tab and associated child views.
59 class WebContentsViewMac : public WebContentsView, 64 class WebContentsViewMac : public WebContentsView,
60 public RenderViewHostDelegateView { 65 public RenderViewHostDelegateView {
61 public: 66 public:
62 // The corresponding WebContentsImpl is passed in the constructor, and manages 67 // The corresponding WebContentsImpl is passed in the constructor, and manages
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool allow_other_views_; 150 bool allow_other_views_;
146 151
147 scoped_ptr<PopupMenuHelper> popup_menu_helper_; 152 scoped_ptr<PopupMenuHelper> popup_menu_helper_;
148 153
149 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 154 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
150 }; 155 };
151 156
152 } // namespace content 157 } // namespace content
153 158
154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 159 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698