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

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

Issue 1749383002: Eliminate uncalled will___LiveResize and inLiveResize from RenderViewImpl through WebWidget down to… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 #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 #include <stdint.h> 10 #include <stdint.h>
(...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after
3420 requestor = self; 3420 requestor = self;
3421 } else if (sendTypeIsString && returnTypeIsString && hasText && takesText) { 3421 } else if (sendTypeIsString && returnTypeIsString && hasText && takesText) {
3422 requestor = self; 3422 requestor = self;
3423 } else { 3423 } else {
3424 requestor = [super validRequestorForSendType:sendType 3424 requestor = [super validRequestorForSendType:sendType
3425 returnType:returnType]; 3425 returnType:returnType];
3426 } 3426 }
3427 return requestor; 3427 return requestor;
3428 } 3428 }
3429 3429
3430 - (void)viewWillStartLiveResize {
3431 [super viewWillStartLiveResize];
3432 RenderWidgetHostImpl* widget = renderWidgetHostView_->render_widget_host_;
3433 if (widget)
3434 widget->Send(new ViewMsg_SetInLiveResize(widget->GetRoutingID(), true));
3435 }
3436
3437 - (void)viewDidEndLiveResize {
3438 [super viewDidEndLiveResize];
3439 RenderWidgetHostImpl* widget = renderWidgetHostView_->render_widget_host_;
3440 if (widget)
3441 widget->Send(new ViewMsg_SetInLiveResize(widget->GetRoutingID(), false));
3442 }
3443
3444 - (void)updateCursor:(NSCursor*)cursor { 3430 - (void)updateCursor:(NSCursor*)cursor {
3445 if (currentCursor_ == cursor) 3431 if (currentCursor_ == cursor)
3446 return; 3432 return;
3447 3433
3448 currentCursor_.reset([cursor retain]); 3434 currentCursor_.reset([cursor retain]);
3449 [[self window] invalidateCursorRectsForView:self]; 3435 [[self window] invalidateCursorRectsForView:self];
3450 } 3436 }
3451 3437
3452 - (void)popupWindowWillClose:(NSNotification *)notification { 3438 - (void)popupWindowWillClose:(NSNotification *)notification {
3453 renderWidgetHostView_->KillSelf(); 3439 renderWidgetHostView_->KillSelf();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 3475
3490 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3476 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3491 // regions that are not draggable. (See ControlRegionView in 3477 // regions that are not draggable. (See ControlRegionView in
3492 // native_app_window_cocoa.mm). This requires the render host view to be 3478 // native_app_window_cocoa.mm). This requires the render host view to be
3493 // draggable by default. 3479 // draggable by default.
3494 - (BOOL)mouseDownCanMoveWindow { 3480 - (BOOL)mouseDownCanMoveWindow {
3495 return YES; 3481 return YES;
3496 } 3482 }
3497 3483
3498 @end 3484 @end
OLDNEW
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698