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 26 matching lines...) Expand all Loading... |
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 | 45 |
46 BOOL ignoreKeyEvents_; | 46 BOOL ignoreKeyEvents_; |
| 47 scoped_nsobject<NSEvent> lastKeyPressedEvent_; |
47 } | 48 } |
48 | 49 |
49 - (void)setCanBeKeyView:(BOOL)can; | 50 - (void)setCanBeKeyView:(BOOL)can; |
50 - (void)setCloseOnDeactivate:(BOOL)b; | 51 - (void)setCloseOnDeactivate:(BOOL)b; |
51 - (void)setToolTipAtMousePoint:(NSString *)string; | 52 - (void)setToolTipAtMousePoint:(NSString *)string; |
52 | 53 |
53 // When a keyboard event comes back from the renderer, we redispatch it. This | 54 // 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 // makes sure we ignore it if we should receive it during redispatch, instead |
55 // of sending it to the renderer again. | 56 // of sending it to the renderer again. |
56 - (void)setIgnoreKeyEvents:(BOOL)ignorekeyEvents; | 57 - (void)setIgnoreKeyEvents:(BOOL)ignorekeyEvents; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Factory used to safely scope delayed calls to ShutdownHost(). | 210 // Factory used to safely scope delayed calls to ShutdownHost(). |
210 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; | 211 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; |
211 | 212 |
212 // Used for positioning a popup menu. | 213 // Used for positioning a popup menu. |
213 BaseView* parent_view_; | 214 BaseView* parent_view_; |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 216 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
216 }; | 217 }; |
217 | 218 |
218 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 219 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |