Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 1318483007: Implement "Look Up In Dictionary" context menu item asynchronously. (OS X) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 - (void)showLookUpDictionaryOverlayFromRange:(NSRange)range;
211 @end 213 @end
212 214
213 namespace content { 215 namespace content {
214 216
215 /////////////////////////////////////////////////////////////////////////////// 217 ///////////////////////////////////////////////////////////////////////////////
216 // RenderWidgetHostViewMac 218 // RenderWidgetHostViewMac
217 // 219 //
218 // An object representing the "View" of a rendered web page. This object is 220 // 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 221 // responsible for displaying the content of the web page, and integrating with
220 // the Cocoa view system. It is the implementation of the RenderWidgetHostView 222 // the Cocoa view system. It is the implementation of the RenderWidgetHostView
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 595
594 // Factory used to safely scope delayed calls to ShutdownHost(). 596 // Factory used to safely scope delayed calls to ShutdownHost().
595 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 597 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
596 598
597 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 599 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
598 }; 600 };
599 601
600 } // namespace content 602 } // namespace content
601 603
602 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 604 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698