| 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/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // The set of key codes from key down events that we haven't seen the matching | 178 // The set of key codes from key down events that we haven't seen the matching |
| 179 // key up events yet. | 179 // key up events yet. |
| 180 // Used for filtering out non-matching NSKeyUp events. | 180 // Used for filtering out non-matching NSKeyUp events. |
| 181 std::set<unsigned short> keyDownCodes_; | 181 std::set<unsigned short> keyDownCodes_; |
| 182 | 182 |
| 183 // The filter used to guide touch events towards a horizontal or vertical | 183 // The filter used to guide touch events towards a horizontal or vertical |
| 184 // orientation. | 184 // orientation. |
| 185 content::MouseWheelRailsFilterMac mouseWheelFilter_; | 185 content::MouseWheelRailsFilterMac mouseWheelFilter_; |
| 186 } | 186 } |
| 187 | 187 |
| 188 @property(nonatomic, readonly) NSRange selectedRange; | 188 //@property(atomic, readwrite) NSRange selectedRange; |
| 189 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp; | 189 @property(nonatomic, readonly) BOOL suppressNextEscapeKeyUp; |
| 190 | 190 |
| 191 - (void)setCanBeKeyView:(BOOL)can; | 191 - (void)setCanBeKeyView:(BOOL)can; |
| 192 - (void)setCloseOnDeactivate:(BOOL)b; | 192 - (void)setCloseOnDeactivate:(BOOL)b; |
| 193 - (void)setOpaque:(BOOL)opaque; | 193 - (void)setOpaque:(BOOL)opaque; |
| 194 // True for always-on-top special windows (e.g. Balloons and Panels). | 194 // True for always-on-top special windows (e.g. Balloons and Panels). |
| 195 - (BOOL)acceptsMouseEventsWhenInactive; | 195 - (BOOL)acceptsMouseEventsWhenInactive; |
| 196 // Cancel ongoing composition (abandon the marked text). | 196 // Cancel ongoing composition (abandon the marked text). |
| 197 - (void)cancelComposition; | 197 - (void)cancelComposition; |
| 198 // Confirm ongoing composition. | 198 // Confirm ongoing composition. |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 617 |
| 618 // Factory used to safely scope delayed calls to ShutdownHost(). | 618 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 619 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 619 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 620 | 620 |
| 621 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 621 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 622 }; | 622 }; |
| 623 | 623 |
| 624 } // namespace content | 624 } // namespace content |
| 625 | 625 |
| 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |