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 #import <Carbon/Carbon.h> | 5 #import <Carbon/Carbon.h> |
6 | 6 |
7 #import "content/browser/web_contents/web_contents_view_mac.h" | 7 #import "content/browser/web_contents/web_contents_view_mac.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 focus_tracker_.reset(nil); | 240 focus_tracker_.reset(nil); |
241 } | 241 } |
242 | 242 |
243 bool WebContentsViewMac::IsDoingDrag() const { | 243 bool WebContentsViewMac::IsDoingDrag() const { |
244 return false; | 244 return false; |
245 } | 245 } |
246 | 246 |
247 void WebContentsViewMac::CancelDragAndCloseTab() { | 247 void WebContentsViewMac::CancelDragAndCloseTab() { |
248 } | 248 } |
249 | 249 |
| 250 WebDropData* WebContentsViewMac::GetDropData() const { |
| 251 return NULL; |
| 252 } |
| 253 |
250 void WebContentsViewMac::UpdateDragCursor(WebDragOperation operation) { | 254 void WebContentsViewMac::UpdateDragCursor(WebDragOperation operation) { |
251 [cocoa_view_ setCurrentDragOperation: operation]; | 255 [cocoa_view_ setCurrentDragOperation: operation]; |
252 } | 256 } |
253 | 257 |
254 void WebContentsViewMac::GotFocus() { | 258 void WebContentsViewMac::GotFocus() { |
255 // This is only used in the views FocusManager stuff but it bleeds through | 259 // This is only used in the views FocusManager stuff but it bleeds through |
256 // all subclasses. http://crbug.com/21875 | 260 // all subclasses. http://crbug.com/21875 |
257 } | 261 } |
258 | 262 |
259 // This is called when the renderer asks us to take focus back (i.e., it has | 263 // This is called when the renderer asks us to take focus back (i.e., it has |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 [[[notification userInfo] objectForKey:kSelectionDirection] | 574 [[[notification userInfo] objectForKey:kSelectionDirection] |
571 unsignedIntegerValue]; | 575 unsignedIntegerValue]; |
572 if (direction == NSDirectSelection) | 576 if (direction == NSDirectSelection) |
573 return; | 577 return; |
574 | 578 |
575 [self webContents]-> | 579 [self webContents]-> |
576 FocusThroughTabTraversal(direction == NSSelectingPrevious); | 580 FocusThroughTabTraversal(direction == NSSelectingPrevious); |
577 } | 581 } |
578 | 582 |
579 @end | 583 @end |
OLD | NEW |