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.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
« no previous file with comments | « no previous file | content/common/view_messages.h » ('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 #include <stdint.h> 10 #include <stdint.h>
(...skipping 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 requestor = self; 3426 requestor = self;
3427 } else if (sendTypeIsString && returnTypeIsString && hasText && takesText) { 3427 } else if (sendTypeIsString && returnTypeIsString && hasText && takesText) {
3428 requestor = self; 3428 requestor = self;
3429 } else { 3429 } else {
3430 requestor = [super validRequestorForSendType:sendType 3430 requestor = [super validRequestorForSendType:sendType
3431 returnType:returnType]; 3431 returnType:returnType];
3432 } 3432 }
3433 return requestor; 3433 return requestor;
3434 } 3434 }
3435 3435
3436 - (void)viewWillStartLiveResize {
3437 [super viewWillStartLiveResize];
3438 RenderWidgetHostImpl* widget = renderWidgetHostView_->render_widget_host_;
3439 if (widget)
3440 widget->Send(new ViewMsg_SetInLiveResize(widget->GetRoutingID(), true));
3441 }
3442
3443 - (void)viewDidEndLiveResize {
3444 [super viewDidEndLiveResize];
3445 RenderWidgetHostImpl* widget = renderWidgetHostView_->render_widget_host_;
3446 if (widget)
3447 widget->Send(new ViewMsg_SetInLiveResize(widget->GetRoutingID(), false));
3448 }
3449
3450 - (void)updateCursor:(NSCursor*)cursor { 3436 - (void)updateCursor:(NSCursor*)cursor {
3451 if (currentCursor_ == cursor) 3437 if (currentCursor_ == cursor)
3452 return; 3438 return;
3453 3439
3454 currentCursor_.reset([cursor retain]); 3440 currentCursor_.reset([cursor retain]);
3455 [[self window] invalidateCursorRectsForView:self]; 3441 [[self window] invalidateCursorRectsForView:self];
3456 } 3442 }
3457 3443
3458 - (void)popupWindowWillClose:(NSNotification *)notification { 3444 - (void)popupWindowWillClose:(NSNotification *)notification {
3459 renderWidgetHostView_->KillSelf(); 3445 renderWidgetHostView_->KillSelf();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
3495 3481
3496 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3482 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3497 // regions that are not draggable. (See ControlRegionView in 3483 // regions that are not draggable. (See ControlRegionView in
3498 // native_app_window_cocoa.mm). This requires the render host view to be 3484 // native_app_window_cocoa.mm). This requires the render host view to be
3499 // draggable by default. 3485 // draggable by default.
3500 - (BOOL)mouseDownCanMoveWindow { 3486 - (BOOL)mouseDownCanMoveWindow {
3501 return YES; 3487 return YES;
3502 } 3488 }
3503 3489
3504 @end 3490 @end
OLDNEW
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698