| 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 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 if (render_widget_host_) | 1696 if (render_widget_host_) |
| 1697 render_widget_host_->SetBackgroundOpaque(opaque); | 1697 render_widget_host_->SetBackgroundOpaque(opaque); |
| 1698 | 1698 |
| 1699 [cocoa_view_ setOpaque:opaque]; | 1699 [cocoa_view_ setOpaque:opaque]; |
| 1700 if (browser_compositor_state_ != BrowserCompositorDestroyed) | 1700 if (browser_compositor_state_ != BrowserCompositorDestroyed) |
| 1701 browser_compositor_->compositor()->SetHostHasTransparentBackground(!opaque); | 1701 browser_compositor_->compositor()->SetHostHasTransparentBackground(!opaque); |
| 1702 } | 1702 } |
| 1703 | 1703 |
| 1704 BrowserAccessibilityManager* | 1704 BrowserAccessibilityManager* |
| 1705 RenderWidgetHostViewMac::CreateBrowserAccessibilityManager( | 1705 RenderWidgetHostViewMac::CreateBrowserAccessibilityManager( |
| 1706 BrowserAccessibilityDelegate* delegate) { | 1706 BrowserAccessibilityDelegate* delegate, bool for_root_frame) { |
| 1707 return new BrowserAccessibilityManagerMac( | 1707 return new BrowserAccessibilityManagerMac( |
| 1708 cocoa_view_, | 1708 cocoa_view_, |
| 1709 BrowserAccessibilityManagerMac::GetEmptyDocument(), | 1709 BrowserAccessibilityManagerMac::GetEmptyDocument(), |
| 1710 delegate); | 1710 delegate); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 gfx::Point RenderWidgetHostViewMac::AccessibilityOriginInScreen( | 1713 gfx::Point RenderWidgetHostViewMac::AccessibilityOriginInScreen( |
| 1714 const gfx::Rect& bounds) { | 1714 const gfx::Rect& bounds) { |
| 1715 NSPoint origin = NSMakePoint(bounds.x(), bounds.y()); | 1715 NSPoint origin = NSMakePoint(bounds.x(), bounds.y()); |
| 1716 NSSize size = NSMakeSize(bounds.width(), bounds.height()); | 1716 NSSize size = NSMakeSize(bounds.width(), bounds.height()); |
| (...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3484 | 3484 |
| 3485 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3485 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
| 3486 // regions that are not draggable. (See ControlRegionView in | 3486 // regions that are not draggable. (See ControlRegionView in |
| 3487 // native_app_window_cocoa.mm). This requires the render host view to be | 3487 // native_app_window_cocoa.mm). This requires the render host view to be |
| 3488 // draggable by default. | 3488 // draggable by default. |
| 3489 - (BOOL)mouseDownCanMoveWindow { | 3489 - (BOOL)mouseDownCanMoveWindow { |
| 3490 return YES; | 3490 return YES; |
| 3491 } | 3491 } |
| 3492 | 3492 |
| 3493 @end | 3493 @end |
| OLD | NEW |