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

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

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac bug. Created 5 years, 7 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 10
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 void RenderWidgetHostViewMac::WheelEventAck( 1556 void RenderWidgetHostViewMac::WheelEventAck(
1557 const blink::WebMouseWheelEvent& event, 1557 const blink::WebMouseWheelEvent& event,
1558 InputEventAckState ack_result) { 1558 InputEventAckState ack_result) {
1559 bool consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; 1559 bool consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED;
1560 // Only record a wheel event as unhandled if JavaScript handlers got a chance 1560 // Only record a wheel event as unhandled if JavaScript handlers got a chance
1561 // to see it (no-op wheel events are ignored by the event dispatcher) 1561 // to see it (no-op wheel events are ignored by the event dispatcher)
1562 if (event.deltaX || event.deltaY) 1562 if (event.deltaX || event.deltaY)
1563 [cocoa_view_ processedWheelEvent:event consumed:consumed]; 1563 [cocoa_view_ processedWheelEvent:event consumed:consumed];
1564 } 1564 }
1565 1565
1566 uint32_t RenderWidgetHostViewMac::GetSurfaceIdNamespace() {
1567 if (delegated_frame_host_)
dcheng 2015/05/14 14:53:38 Can we add a comment that explains why this can ha
1568 return delegated_frame_host_->GetSurfaceIdNamespace();
1569
1570 return 0;
1571 }
1572
1566 bool RenderWidgetHostViewMac::Send(IPC::Message* message) { 1573 bool RenderWidgetHostViewMac::Send(IPC::Message* message) {
1567 if (render_widget_host_) 1574 if (render_widget_host_)
1568 return render_widget_host_->Send(message); 1575 return render_widget_host_->Send(message);
1569 delete message; 1576 delete message;
1570 return false; 1577 return false;
1571 } 1578 }
1572 1579
1573 void RenderWidgetHostViewMac::ShutdownHost() { 1580 void RenderWidgetHostViewMac::ShutdownHost() {
1574 weak_factory_.InvalidateWeakPtrs(); 1581 weak_factory_.InvalidateWeakPtrs();
1575 render_widget_host_->Shutdown(); 1582 render_widget_host_->Shutdown();
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 3497
3491 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3498 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3492 // regions that are not draggable. (See ControlRegionView in 3499 // regions that are not draggable. (See ControlRegionView in
3493 // native_app_window_cocoa.mm). This requires the render host view to be 3500 // native_app_window_cocoa.mm). This requires the render host view to be
3494 // draggable by default. 3501 // draggable by default.
3495 - (BOOL)mouseDownCanMoveWindow { 3502 - (BOOL)mouseDownCanMoveWindow {
3496 return YES; 3503 return YES;
3497 } 3504 }
3498 3505
3499 @end 3506 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698