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

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

Issue 1396243002: Using the correct target NSView to show the dictionary bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 - (void)showLookUpDictionaryOverlayAtPoint:(NSPoint)point;
212 - (void)showLookUpDictionaryOverlayFromRange:(NSRange)range; 212 - (void)showLookUpDictionaryOverlayFromRange:(NSRange)range
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 //
220 // An object representing the "View" of a rendered web page. This object is 221 // An object representing the "View" of a rendered web page. This object is
221 // responsible for displaying the content of the web page, and integrating with 222 // responsible for displaying the content of the web page, and integrating with
222 // the Cocoa view system. It is the implementation of the RenderWidgetHostView 223 // the Cocoa view system. It is the implementation of the RenderWidgetHostView
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 603
603 // Factory used to safely scope delayed calls to ShutdownHost(). 604 // Factory used to safely scope delayed calls to ShutdownHost().
604 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 605 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
605 606
606 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 607 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
607 }; 608 };
608 609
609 } // namespace content 610 } // namespace content
610 611
611 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 612 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698