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 2811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2822 } else { | 2822 } else { |
2823 return NSNotFound; | 2823 return NSNotFound; |
2824 } | 2824 } |
2825 } | 2825 } |
2826 | 2826 |
2827 - (id)accessibilityFocusedUIElement { | 2827 - (id)accessibilityFocusedUIElement { |
2828 BrowserAccessibilityManager* manager = | 2828 BrowserAccessibilityManager* manager = |
2829 renderWidgetHostView_->render_widget_host_ | 2829 renderWidgetHostView_->render_widget_host_ |
2830 ->GetRootBrowserAccessibilityManager(); | 2830 ->GetRootBrowserAccessibilityManager(); |
2831 if (manager) { | 2831 if (manager) { |
2832 BrowserAccessibility* focused_item = manager->GetFocus(NULL); | 2832 BrowserAccessibility* focused_item = manager->GetFocus(); |
2833 DCHECK(focused_item); | 2833 DCHECK(focused_item); |
2834 if (focused_item) { | 2834 if (focused_item) { |
2835 BrowserAccessibilityCocoa* focused_item_cocoa = | 2835 BrowserAccessibilityCocoa* focused_item_cocoa = |
2836 focused_item->ToBrowserAccessibilityCocoa(); | 2836 focused_item->ToBrowserAccessibilityCocoa(); |
2837 DCHECK(focused_item_cocoa); | 2837 DCHECK(focused_item_cocoa); |
2838 if (focused_item_cocoa) | 2838 if (focused_item_cocoa) |
2839 return focused_item_cocoa; | 2839 return focused_item_cocoa; |
2840 } | 2840 } |
2841 } | 2841 } |
2842 return [super accessibilityFocusedUIElement]; | 2842 return [super accessibilityFocusedUIElement]; |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3445 | 3445 |
3446 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3446 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3447 // regions that are not draggable. (See ControlRegionView in | 3447 // regions that are not draggable. (See ControlRegionView in |
3448 // native_app_window_cocoa.mm). This requires the render host view to be | 3448 // native_app_window_cocoa.mm). This requires the render host view to be |
3449 // draggable by default. | 3449 // draggable by default. |
3450 - (BOOL)mouseDownCanMoveWindow { | 3450 - (BOOL)mouseDownCanMoveWindow { |
3451 return YES; | 3451 return YES; |
3452 } | 3452 } |
3453 | 3453 |
3454 @end | 3454 @end |
OLD | NEW |