| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "ui/views/cocoa/bridged_content_view.h" | 5 #import "ui/views/cocoa/bridged_content_view.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "grit/ui_strings.h" | |
| 11 #include "ui/base/ime/text_input_client.h" | 10 #include "ui/base/ime/text_input_client.h" |
| 12 #include "ui/gfx/canvas_paint_mac.h" | 11 #include "ui/gfx/canvas_paint_mac.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/strings/grit/ui_strings.h" |
| 14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 @interface BridgedContentView () | 17 @interface BridgedContentView () |
| 18 | 18 |
| 19 // Translates the location of |theEvent| to toolkit-views coordinates and passes | 19 // Translates the location of |theEvent| to toolkit-views coordinates and passes |
| 20 // the event to NativeWidgetMac for handling. | 20 // the event to NativeWidgetMac for handling. |
| 21 - (void)handleMouseEvent:(NSEvent*)theEvent; | 21 - (void)handleMouseEvent:(NSEvent*)theEvent; |
| 22 | 22 |
| 23 // Execute a command on the currently focused TextInputClient. | 23 // Execute a command on the currently focused TextInputClient. |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 return [super accessibilityAttributeValue:attribute]; | 313 return [super accessibilityAttributeValue:attribute]; |
| 314 } | 314 } |
| 315 | 315 |
| 316 - (id)accessibilityHitTest:(NSPoint)point { | 316 - (id)accessibilityHitTest:(NSPoint)point { |
| 317 return [hostedView_->GetNativeViewAccessible() accessibilityHitTest:point]; | 317 return [hostedView_->GetNativeViewAccessible() accessibilityHitTest:point]; |
| 318 } | 318 } |
| 319 | 319 |
| 320 @end | 320 @end |
| OLD | NEW |