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

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

Issue 1575113002: Implementation for Look Up on Force Touch. If the user force touched a word in the web content the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 4 years, 11 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « base/mac/sdk_forward_declarations.h ('k') | 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