OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" | 7 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/global_keyboard_shortcuts_mac.h" | 11 #include "chrome/browser/global_keyboard_shortcuts_mac.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 13 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
14 #include "chrome/browser/renderer_host/render_widget_host.h" | 14 #include "chrome/browser/renderer_host/render_widget_host.h" |
15 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 15 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
16 #include "chrome/browser/tab_contents/popup_menu_helper_mac.h" | 16 #include "chrome/browser/tab_contents/popup_menu_helper_mac.h" |
17 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h" | 17 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 19 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
20 #import "chrome/browser/ui/cocoa/focus_tracker.h" | 20 #import "chrome/browser/ui/cocoa/focus_tracker.h" |
21 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 21 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
22 #include "chrome/browser/ui/cocoa/sad_tab_controller.h" | 22 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" |
23 #import "chrome/browser/ui/cocoa/web_drag_source.h" | 23 #import "chrome/browser/ui/cocoa/tab_contents/web_drag_source.h" |
24 #import "chrome/browser/ui/cocoa/web_drop_target.h" | 24 #import "chrome/browser/ui/cocoa/tab_contents/web_drop_target.h" |
25 #import "chrome/browser/ui/cocoa/view_id_util.h" | 25 #import "chrome/browser/ui/cocoa/view_id_util.h" |
26 #import "chrome/common/chrome_application_mac.h" | 26 #import "chrome/common/chrome_application_mac.h" |
27 #include "chrome/common/notification_details.h" | 27 #include "chrome/common/notification_details.h" |
28 #include "chrome/common/notification_source.h" | 28 #include "chrome/common/notification_source.h" |
29 #include "chrome/common/notification_type.h" | 29 #include "chrome/common/notification_type.h" |
30 #include "chrome/common/render_messages.h" | 30 #include "chrome/common/render_messages.h" |
31 #include "skia/ext/skia_utils_mac.h" | 31 #include "skia/ext/skia_utils_mac.h" |
32 #import "third_party/mozilla/NSPasteboard+Utils.h" | 32 #import "third_party/mozilla/NSPasteboard+Utils.h" |
33 | 33 |
34 using WebKit::WebDragOperation; | 34 using WebKit::WebDragOperation; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 [[[notification userInfo] objectForKey:kSelectionDirection] | 511 [[[notification userInfo] objectForKey:kSelectionDirection] |
512 unsignedIntegerValue]; | 512 unsignedIntegerValue]; |
513 if (direction == NSDirectSelection) | 513 if (direction == NSDirectSelection) |
514 return; | 514 return; |
515 | 515 |
516 [self tabContents]-> | 516 [self tabContents]-> |
517 FocusThroughTabTraversal(direction == NSSelectingPrevious); | 517 FocusThroughTabTraversal(direction == NSSelectingPrevious); |
518 } | 518 } |
519 | 519 |
520 @end | 520 @end |
OLD | NEW |