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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 // Whether or not plugin IME is currently enabled active. | 142 // Whether or not plugin IME is currently enabled active. |
143 BOOL pluginImeActive_; | 143 BOOL pluginImeActive_; |
144 | 144 |
145 // Whether the previous mouse event was ignored due to hitTest check. | 145 // Whether the previous mouse event was ignored due to hitTest check. |
146 BOOL mouseEventWasIgnored_; | 146 BOOL mouseEventWasIgnored_; |
147 | 147 |
148 // Event monitor for scroll wheel end event. | 148 // Event monitor for scroll wheel end event. |
149 id endWheelMonitor_; | 149 id endWheelMonitor_; |
150 | 150 |
| 151 // When a gesture starts, the system does not inform the view of which type |
| 152 // of gesture is happening (magnify, rotate, etc), rather, it just informs |
| 153 // the view that some as-yet-undefined gesture is starting. Capture the |
| 154 // information about the gesture's beginning event here. It will be used to |
| 155 // create a specific gesture begin event later. |
| 156 scoped_ptr<blink::WebGestureEvent> gestureBeginEvent_; |
| 157 |
| 158 // This is set if a GesturePinchBegin event has been sent in the lifetime of |
| 159 // |gestureBeginEvent_|. If set, a GesturePinchEnd will be sent when the |
| 160 // gesture ends. |
| 161 BOOL gestureBeginPinchSent_; |
| 162 |
151 // If true then escape key down events are suppressed until the first escape | 163 // If true then escape key down events are suppressed until the first escape |
152 // key up event. (The up event is suppressed as well). This is used by the | 164 // key up event. (The up event is suppressed as well). This is used by the |
153 // flash fullscreen code to avoid sending a key up event without a matching | 165 // flash fullscreen code to avoid sending a key up event without a matching |
154 // key down event. | 166 // key down event. |
155 BOOL suppressNextEscapeKeyUp_; | 167 BOOL suppressNextEscapeKeyUp_; |
156 | 168 |
157 // The set of key codes from key down events that we haven't seen the matching | 169 // The set of key codes from key down events that we haven't seen the matching |
158 // key up events yet. | 170 // key up events yet. |
159 // Used for filtering out non-matching NSKeyUp events. | 171 // Used for filtering out non-matching NSKeyUp events. |
160 std::set<unsigned short> keyDownCodes_; | 172 std::set<unsigned short> keyDownCodes_; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 572 |
561 // Factory used to safely scope delayed calls to ShutdownHost(). | 573 // Factory used to safely scope delayed calls to ShutdownHost(). |
562 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 574 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
563 | 575 |
564 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 576 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
565 }; | 577 }; |
566 | 578 |
567 } // namespace content | 579 } // namespace content |
568 | 580 |
569 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 581 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |