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

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

Issue 1809793002: Fix connection between BrowserAccessibilityManager and ContentViewCore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InternalGetChild -> PlatformGetChild so we can walk into iframes 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 | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | no next file » | 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 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698