Remove redundant code from RWHVCocoa, move some code to RWHVNSViewBridge
Remove suppressNextEscapeKeyUp_ because its functionality is made redundant by keyDownCodes_. The escape-key-specific version was introduced in crrev.com/165615 while the generic version was introduced in crrev.com/304728. While in the -[NSView keyEvent:] method, replace repeated method calls with local variables in preparation for moving most of the funciton across an IPC boundary, and fold shouldAutohideCursorForEvent into the function (since it's called nowhere else). Move SetBackgroundColor and Show/Hide/IsHidden functionality into the RWHVNSViewBridge. Bug: 821651 Change-Id: I31382a46b330fedbd3c4a6593ffafdb4a0b83be1 Reviewed-on: https://chromium-review.googlesource.com/974887 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#545160}
Showing
Please register or sign in to comment