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

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

Issue 940733002: Mac: Add more components of double-tap zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/renderer/render_view_impl.cc » ('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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 10
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 2270
2271 - (void)touchesCancelledWithEvent:(NSEvent*)event { 2271 - (void)touchesCancelledWithEvent:(NSEvent*)event {
2272 [responderDelegate_ touchesCancelledWithEvent:event]; 2272 [responderDelegate_ touchesCancelledWithEvent:event];
2273 } 2273 }
2274 2274
2275 - (void)touchesEndedWithEvent:(NSEvent*)event { 2275 - (void)touchesEndedWithEvent:(NSEvent*)event {
2276 [responderDelegate_ touchesEndedWithEvent:event]; 2276 [responderDelegate_ touchesEndedWithEvent:event];
2277 } 2277 }
2278 2278
2279 - (void)smartMagnifyWithEvent:(NSEvent*)event { 2279 - (void)smartMagnifyWithEvent:(NSEvent*)event {
2280 const WebGestureEvent& smartMagnifyEvent =
2281 WebInputEventFactory::gestureEvent(event, self);
2282 ignore_result(smartMagnifyEvent);
Avi (use Gerrit) 2015/02/18 21:32:10 Heh!
2280 } 2283 }
2281 2284
2282 // This is invoked only on 10.8 or newer when the user taps a word using 2285 // This is invoked only on 10.8 or newer when the user taps a word using
2283 // three fingers. 2286 // three fingers.
2284 - (void)quickLookWithEvent:(NSEvent*)event { 2287 - (void)quickLookWithEvent:(NSEvent*)event {
2285 NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil]; 2288 NSPoint point = [self convertPoint:[event locationInWindow] fromView:nil];
2286 TextInputClientMac::GetInstance()->GetStringAtPoint( 2289 TextInputClientMac::GetInstance()->GetStringAtPoint(
2287 renderWidgetHostView_->render_widget_host_, 2290 renderWidgetHostView_->render_widget_host_,
2288 gfx::Point(point.x, NSHeight([self frame]) - point.y), 2291 gfx::Point(point.x, NSHeight([self frame]) - point.y),
2289 ^(NSAttributedString* string, NSPoint baselinePoint) { 2292 ^(NSAttributedString* string, NSPoint baselinePoint) {
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
3417 3420
3418 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3421 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3419 // regions that are not draggable. (See ControlRegionView in 3422 // regions that are not draggable. (See ControlRegionView in
3420 // native_app_window_cocoa.mm). This requires the render host view to be 3423 // native_app_window_cocoa.mm). This requires the render host view to be
3421 // draggable by default. 3424 // draggable by default.
3422 - (BOOL)mouseDownCanMoveWindow { 3425 - (BOOL)mouseDownCanMoveWindow {
3423 return YES; 3426 return YES;
3424 } 3427 }
3425 3428
3426 @end 3429 @end
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698