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 "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
6 | 6 |
7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" |
56 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 56 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
57 #include "content/public/browser/navigation_controller.h" | 57 #include "content/public/browser/navigation_controller.h" |
58 #include "content/public/browser/user_metrics.h" | 58 #include "content/public/browser/user_metrics.h" |
59 #include "content/public/browser/web_contents.h" | 59 #include "content/public/browser/web_contents.h" |
60 #include "content/public/browser/web_contents_view.h" | 60 #include "content/public/browser/web_contents_view.h" |
61 #include "grit/generated_resources.h" | 61 #include "grit/generated_resources.h" |
62 #include "grit/theme_resources.h" | 62 #include "grit/theme_resources.h" |
63 #include "grit/ui_resources.h" | 63 #include "grit/ui_resources.h" |
64 #include "skia/ext/skia_utils_mac.h" | 64 #include "skia/ext/skia_utils_mac.h" |
65 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 65 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" |
66 #include "ui/base/cocoa/animation_utils.h" | 66 #include "ui/base/cocoa/animation_utils.h" |
67 #import "ui/base/cocoa/tracking_area.h" | 67 #import "ui/base/cocoa/tracking_area.h" |
68 #include "ui/base/l10n/l10n_util.h" | 68 #include "ui/base/l10n/l10n_util.h" |
69 #include "ui/base/models/list_selection_model.h" | 69 #include "ui/base/models/list_selection_model.h" |
70 #include "ui/base/resource/resource_bundle.h" | 70 #include "ui/base/resource/resource_bundle.h" |
71 #include "ui/base/theme_provider.h" | 71 #include "ui/base/theme_provider.h" |
72 #include "ui/gfx/image/image.h" | 72 #include "ui/gfx/image/image.h" |
73 | 73 |
74 using content::OpenURLParams; | 74 using content::OpenURLParams; |
75 using content::Referrer; | 75 using content::Referrer; |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2217 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { | 2217 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { |
2218 // View hierarchy of the contents view: | 2218 // View hierarchy of the contents view: |
2219 // NSView -- switchView, same for all tabs | 2219 // NSView -- switchView, same for all tabs |
2220 // +- NSView -- TabContentsController's view | 2220 // +- NSView -- TabContentsController's view |
2221 // +- TabContentsViewCocoa | 2221 // +- TabContentsViewCocoa |
2222 // | 2222 // |
2223 // Changing it? Do not forget to modify | 2223 // Changing it? Do not forget to modify |
2224 // -[TabStripController swapInTabAtIndex:] too. | 2224 // -[TabStripController swapInTabAtIndex:] too. |
2225 return [web_contents->GetView()->GetNativeView() superview]; | 2225 return [web_contents->GetView()->GetNativeView() superview]; |
2226 } | 2226 } |
OLD | NEW |