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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Enables or disables plugin IME. | 201 // Enables or disables plugin IME. |
202 - (void)setPluginImeActive:(BOOL)active; | 202 - (void)setPluginImeActive:(BOOL)active; |
203 // Updates the current plugin focus state. | 203 // Updates the current plugin focus state. |
204 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; | 204 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; |
205 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. | 205 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. |
206 // Returns YES if the event was handled. | 206 // Returns YES if the event was handled. |
207 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event; | 207 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event; |
208 - (void)updateCursor:(NSCursor*)cursor; | 208 - (void)updateCursor:(NSCursor*)cursor; |
209 - (NSRect)firstViewRectForCharacterRange:(NSRange)theRange | 209 - (NSRect)firstViewRectForCharacterRange:(NSRange)theRange |
210 actualRange:(NSRangePointer)actualRange; | 210 actualRange:(NSRangePointer)actualRange; |
| 211 - (void)showLookUpDictionaryOverlayAtPoint:(NSPoint)point; |
211 @end | 212 @end |
212 | 213 |
213 namespace content { | 214 namespace content { |
214 | 215 |
215 /////////////////////////////////////////////////////////////////////////////// | 216 /////////////////////////////////////////////////////////////////////////////// |
216 // RenderWidgetHostViewMac | 217 // RenderWidgetHostViewMac |
217 // | 218 // |
218 // An object representing the "View" of a rendered web page. This object is | 219 // An object representing the "View" of a rendered web page. This object is |
219 // responsible for displaying the content of the web page, and integrating with | 220 // responsible for displaying the content of the web page, and integrating with |
220 // the Cocoa view system. It is the implementation of the RenderWidgetHostView | 221 // the Cocoa view system. It is the implementation of the RenderWidgetHostView |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 | 590 |
590 // Factory used to safely scope delayed calls to ShutdownHost(). | 591 // Factory used to safely scope delayed calls to ShutdownHost(). |
591 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 592 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
592 | 593 |
593 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 594 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
594 }; | 595 }; |
595 | 596 |
596 } // namespace content | 597 } // namespace content |
597 | 598 |
598 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 599 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |