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; | |
212 @end | 211 @end |
213 | 212 |
214 namespace content { | 213 namespace content { |
215 | 214 |
216 /////////////////////////////////////////////////////////////////////////////// | 215 /////////////////////////////////////////////////////////////////////////////// |
217 // RenderWidgetHostViewMac | 216 // RenderWidgetHostViewMac |
218 // | 217 // |
219 // An object representing the "View" of a rendered web page. This object is | 218 // An object representing the "View" of a rendered web page. This object is |
220 // responsible for displaying the content of the web page, and integrating with | 219 // responsible for displaying the content of the web page, and integrating with |
221 // the Cocoa view system. It is the implementation of the RenderWidgetHostView | 220 // the Cocoa view system. It is the implementation of the RenderWidgetHostView |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 589 |
591 // Factory used to safely scope delayed calls to ShutdownHost(). | 590 // Factory used to safely scope delayed calls to ShutdownHost(). |
592 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 591 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
593 | 592 |
594 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 593 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
595 }; | 594 }; |
596 | 595 |
597 } // namespace content | 596 } // namespace content |
598 | 597 |
599 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 598 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |