| OLD | NEW |
| 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 // us. | 570 // us. |
| 571 if (render_widget_host_) | 571 if (render_widget_host_) |
| 572 render_widget_host_->SetView(NULL); | 572 render_widget_host_->SetView(NULL); |
| 573 } | 573 } |
| 574 | 574 |
| 575 void RenderWidgetHostViewMac::SetDelegate( | 575 void RenderWidgetHostViewMac::SetDelegate( |
| 576 NSObject<RenderWidgetHostViewMacDelegate>* delegate) { | 576 NSObject<RenderWidgetHostViewMacDelegate>* delegate) { |
| 577 [cocoa_view_ setResponderDelegate:delegate]; | 577 [cocoa_view_ setResponderDelegate:delegate]; |
| 578 } | 578 } |
| 579 | 579 |
| 580 void RenderWidgetHostViewMac::SetAllowOverlappingViews(bool overlapping) { | |
| 581 // TODO(ccameron): Remove callers of this function. | |
| 582 } | |
| 583 | |
| 584 void RenderWidgetHostViewMac::SetAllowPauseForResizeOrRepaint(bool allow) { | 580 void RenderWidgetHostViewMac::SetAllowPauseForResizeOrRepaint(bool allow) { |
| 585 allow_pause_for_resize_or_repaint_ = allow; | 581 allow_pause_for_resize_or_repaint_ = allow; |
| 586 } | 582 } |
| 587 | 583 |
| 588 /////////////////////////////////////////////////////////////////////////////// | 584 /////////////////////////////////////////////////////////////////////////////// |
| 589 // RenderWidgetHostViewMac, RenderWidgetHostView implementation: | 585 // RenderWidgetHostViewMac, RenderWidgetHostView implementation: |
| 590 | 586 |
| 591 bool RenderWidgetHostViewMac::EnsureCompositedIOSurface() { | 587 bool RenderWidgetHostViewMac::EnsureCompositedIOSurface() { |
| 592 // If the context or the IOSurface's context has had an error, re-build | 588 // If the context or the IOSurface's context has had an error, re-build |
| 593 // everything from scratch. | 589 // everything from scratch. |
| (...skipping 3500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4094 | 4090 |
| 4095 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 4091 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
| 4096 // regions that are not draggable. (See ControlRegionView in | 4092 // regions that are not draggable. (See ControlRegionView in |
| 4097 // native_app_window_cocoa.mm). This requires the render host view to be | 4093 // native_app_window_cocoa.mm). This requires the render host view to be |
| 4098 // draggable by default. | 4094 // draggable by default. |
| 4099 - (BOOL)mouseDownCanMoveWindow { | 4095 - (BOOL)mouseDownCanMoveWindow { |
| 4100 return YES; | 4096 return YES; |
| 4101 } | 4097 } |
| 4102 | 4098 |
| 4103 @end | 4099 @end |
| OLD | NEW |