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 <list> | 10 #include <list> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Enables or disables plugin IME. | 200 // Enables or disables plugin IME. |
201 - (void)setPluginImeActive:(BOOL)active; | 201 - (void)setPluginImeActive:(BOOL)active; |
202 // Updates the current plugin focus state. | 202 // Updates the current plugin focus state. |
203 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; | 203 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; |
204 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. | 204 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. |
205 // Returns YES if the event was handled. | 205 // Returns YES if the event was handled. |
206 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event; | 206 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event; |
207 - (void)updateCursor:(NSCursor*)cursor; | 207 - (void)updateCursor:(NSCursor*)cursor; |
208 - (NSRect)firstViewRectForCharacterRange:(NSRange)theRange | 208 - (NSRect)firstViewRectForCharacterRange:(NSRange)theRange |
209 actualRange:(NSRangePointer)actualRange; | 209 actualRange:(NSRangePointer)actualRange; |
| 210 - (void)quickLookWithEvent:(NSEvent*)event; |
210 - (void)showLookUpDictionaryOverlayAtPoint:(NSPoint)point; | 211 - (void)showLookUpDictionaryOverlayAtPoint:(NSPoint)point; |
211 - (void)showLookUpDictionaryOverlayFromRange:(NSRange)range | 212 - (void)showLookUpDictionaryOverlayFromRange:(NSRange)range |
212 targetView:(NSView*)targetView; | 213 targetView:(NSView*)targetView; |
213 @end | 214 @end |
214 | 215 |
215 namespace content { | 216 namespace content { |
216 | 217 |
217 /////////////////////////////////////////////////////////////////////////////// | 218 /////////////////////////////////////////////////////////////////////////////// |
218 // RenderWidgetHostViewMac | 219 // RenderWidgetHostViewMac |
219 // | 220 // |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 | 602 |
602 // Factory used to safely scope delayed calls to ShutdownHost(). | 603 // Factory used to safely scope delayed calls to ShutdownHost(). |
603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 604 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
604 | 605 |
605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 606 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
606 }; | 607 }; |
607 | 608 |
608 } // namespace content | 609 } // namespace content |
609 | 610 |
610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 611 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |