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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <IOSurface/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
10 #include <list> | 10 #include <list> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 : BaseView <RenderWidgetHostViewMacBase, | 61 : BaseView <RenderWidgetHostViewMacBase, |
62 RenderWidgetHostViewMacOwner, | 62 RenderWidgetHostViewMacOwner, |
63 NSTextInputClient> { | 63 NSTextInputClient> { |
64 @private | 64 @private |
65 scoped_ptr<content::RenderWidgetHostViewMac> renderWidgetHostView_; | 65 scoped_ptr<content::RenderWidgetHostViewMac> renderWidgetHostView_; |
66 // This ivar is the cocoa delegate of the NSResponder. | 66 // This ivar is the cocoa delegate of the NSResponder. |
67 base::scoped_nsobject<NSObject<RenderWidgetHostViewMacDelegate>> | 67 base::scoped_nsobject<NSObject<RenderWidgetHostViewMacDelegate>> |
68 responderDelegate_; | 68 responderDelegate_; |
69 BOOL canBeKeyView_; | 69 BOOL canBeKeyView_; |
70 BOOL closeOnDeactivate_; | 70 BOOL closeOnDeactivate_; |
| 71 BOOL opaque_; |
71 scoped_ptr<content::RenderWidgetHostViewMacEditCommandHelper> | 72 scoped_ptr<content::RenderWidgetHostViewMacEditCommandHelper> |
72 editCommand_helper_; | 73 editCommand_helper_; |
73 | 74 |
74 // These are part of the magic tooltip code from WebKit's WebHTMLView: | 75 // These are part of the magic tooltip code from WebKit's WebHTMLView: |
75 id trackingRectOwner_; // (not retained) | 76 id trackingRectOwner_; // (not retained) |
76 void* trackingRectUserData_; | 77 void* trackingRectUserData_; |
77 NSTrackingRectTag lastToolTipTag_; | 78 NSTrackingRectTag lastToolTipTag_; |
78 base::scoped_nsobject<NSString> toolTip_; | 79 base::scoped_nsobject<NSString> toolTip_; |
79 | 80 |
80 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up. | 81 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // key up events yet. | 159 // key up events yet. |
159 // Used for filtering out non-matching NSKeyUp events. | 160 // Used for filtering out non-matching NSKeyUp events. |
160 std::set<unsigned short> keyDownCodes_; | 161 std::set<unsigned short> keyDownCodes_; |
161 } | 162 } |
162 | 163 |
163 @property(nonatomic, readonly) NSRange selectedRange; | 164 @property(nonatomic, readonly) NSRange selectedRange; |
164 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp; | 165 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp; |
165 | 166 |
166 - (void)setCanBeKeyView:(BOOL)can; | 167 - (void)setCanBeKeyView:(BOOL)can; |
167 - (void)setCloseOnDeactivate:(BOOL)b; | 168 - (void)setCloseOnDeactivate:(BOOL)b; |
| 169 - (void)setOpaque:(BOOL)opaque; |
168 - (void)setToolTipAtMousePoint:(NSString *)string; | 170 - (void)setToolTipAtMousePoint:(NSString *)string; |
169 // True for always-on-top special windows (e.g. Balloons and Panels). | 171 // True for always-on-top special windows (e.g. Balloons and Panels). |
170 - (BOOL)acceptsMouseEventsWhenInactive; | 172 - (BOOL)acceptsMouseEventsWhenInactive; |
171 // Cancel ongoing composition (abandon the marked text). | 173 // Cancel ongoing composition (abandon the marked text). |
172 - (void)cancelComposition; | 174 - (void)cancelComposition; |
173 // Confirm ongoing composition. | 175 // Confirm ongoing composition. |
174 - (void)confirmComposition; | 176 - (void)confirmComposition; |
175 // Enables or disables plugin IME. | 177 // Enables or disables plugin IME. |
176 - (void)setPluginImeActive:(BOOL)active; | 178 - (void)setPluginImeActive:(BOOL)active; |
177 // Updates the current plugin focus state. | 179 // Updates the current plugin focus state. |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 554 |
553 // Factory used to safely scope delayed calls to ShutdownHost(). | 555 // Factory used to safely scope delayed calls to ShutdownHost(). |
554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 556 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
555 | 557 |
556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 558 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
557 }; | 559 }; |
558 | 560 |
559 } // namespace content | 561 } // namespace content |
560 | 562 |
561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 563 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |