| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 RenderWidgetHostViewMac* renderWidgetHostView_; // Owned by us. | 35 RenderWidgetHostViewMac* renderWidgetHostView_; // Owned by us. |
| 36 BOOL canBeKeyView_; | 36 BOOL canBeKeyView_; |
| 37 BOOL closeOnDeactivate_; | 37 BOOL closeOnDeactivate_; |
| 38 scoped_ptr<RWHVMEditCommandHelper> editCommand_helper_; | 38 scoped_ptr<RWHVMEditCommandHelper> editCommand_helper_; |
| 39 | 39 |
| 40 // These are part of the magic tooltip code from WebKit's WebHTMLView: | 40 // These are part of the magic tooltip code from WebKit's WebHTMLView: |
| 41 id trackingRectOwner_; // (not retained) | 41 id trackingRectOwner_; // (not retained) |
| 42 void *trackingRectUserData_; | 42 void *trackingRectUserData_; |
| 43 NSTrackingRectTag lastToolTipTag_; | 43 NSTrackingRectTag lastToolTipTag_; |
| 44 NSString* toolTip_; | 44 NSString* toolTip_; |
| 45 |
| 46 BOOL ignoreKeyEvents_; |
| 45 } | 47 } |
| 46 | 48 |
| 47 - (void)setCanBeKeyView:(BOOL)can; | 49 - (void)setCanBeKeyView:(BOOL)can; |
| 48 - (void)setCloseOnDeactivate:(BOOL)b; | 50 - (void)setCloseOnDeactivate:(BOOL)b; |
| 49 - (void)setToolTipAtMousePoint:(NSString *)string; | 51 - (void)setToolTipAtMousePoint:(NSString *)string; |
| 50 | 52 |
| 53 // When a keyboard event comes back from the renderer, we redispatch it. This |
| 54 // makes sure we ignore it if we should receive it during redispatch, instead |
| 55 // of sending it to the renderer again. |
| 56 - (void)setIgnoreKeyEvents:(BOOL)ignorekeyEvents; |
| 51 @end | 57 @end |
| 52 | 58 |
| 53 /////////////////////////////////////////////////////////////////////////////// | 59 /////////////////////////////////////////////////////////////////////////////// |
| 54 // RenderWidgetHostViewMac | 60 // RenderWidgetHostViewMac |
| 55 // | 61 // |
| 56 // An object representing the "View" of a rendered web page. This object is | 62 // An object representing the "View" of a rendered web page. This object is |
| 57 // responsible for displaying the content of the web page, and integrating with | 63 // responsible for displaying the content of the web page, and integrating with |
| 58 // the Cocoa view system. It is the implementation of the RenderWidgetHostView | 64 // the Cocoa view system. It is the implementation of the RenderWidgetHostView |
| 59 // that the cross-platform RenderWidgetHost object uses | 65 // that the cross-platform RenderWidgetHost object uses |
| 60 // to display the data. | 66 // to display the data. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Factory used to safely scope delayed calls to ShutdownHost(). | 208 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 203 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; | 209 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; |
| 204 | 210 |
| 205 // Used for positioning a popup menu. | 211 // Used for positioning a popup menu. |
| 206 BaseView* parent_view_; | 212 BaseView* parent_view_; |
| 207 | 213 |
| 208 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 214 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 209 }; | 215 }; |
| 210 | 216 |
| 211 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 217 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |