OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 namespace gfx { | 31 namespace gfx { |
32 class Point; | 32 class Point; |
33 } | 33 } |
34 | 34 |
35 @interface WebContentsViewCocoa : BaseView { | 35 @interface WebContentsViewCocoa : BaseView { |
36 @private | 36 @private |
37 WebContentsViewMac* webContentsView_; // WEAK; owns us | 37 WebContentsViewMac* webContentsView_; // WEAK; owns us |
38 scoped_nsobject<WebDragSource> dragSource_; | 38 scoped_nsobject<WebDragSource> dragSource_; |
39 scoped_nsobject<WebDragDest> dragDest_; | 39 scoped_nsobject<WebDragDest> dragDest_; |
| 40 BOOL mouseDownCanMoveWindow_; |
40 } | 41 } |
41 | 42 |
| 43 - (void)setMouseDownCanMoveWindow:(BOOL)canMove; |
| 44 |
42 // Expose this, since sometimes one needs both the NSView and the | 45 // Expose this, since sometimes one needs both the NSView and the |
43 // WebContentsImpl. | 46 // WebContentsImpl. |
44 - (WebContentsImpl*)webContents; | 47 - (WebContentsImpl*)webContents; |
45 @end | 48 @end |
46 | 49 |
47 // Mac-specific implementation of the WebContentsView. It owns an NSView that | 50 // Mac-specific implementation of the WebContentsView. It owns an NSView that |
48 // contains all of the contents of the tab and associated child views. | 51 // contains all of the contents of the tab and associated child views. |
49 class WebContentsViewMac | 52 class WebContentsViewMac |
50 : public content::WebContentsView, | 53 : public content::WebContentsView, |
51 public content::RenderViewHostDelegateView { | 54 public content::RenderViewHostDelegateView { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // focus returns. | 121 // focus returns. |
119 scoped_nsobject<FocusTracker> focus_tracker_; | 122 scoped_nsobject<FocusTracker> focus_tracker_; |
120 | 123 |
121 // Our optional delegate. | 124 // Our optional delegate. |
122 scoped_ptr<content::WebContentsViewDelegate> delegate_; | 125 scoped_ptr<content::WebContentsViewDelegate> delegate_; |
123 | 126 |
124 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 127 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
125 }; | 128 }; |
126 | 129 |
127 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 130 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |