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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "grit/generated_resources.h" | 63 #include "grit/generated_resources.h" |
64 #include "grit/theme_resources.h" | 64 #include "grit/theme_resources.h" |
65 #include "grit/ui_resources.h" | 65 #include "grit/ui_resources.h" |
66 #include "skia/ext/skia_utils_mac.h" | 66 #include "skia/ext/skia_utils_mac.h" |
67 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 67 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.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 #include "ui/gfx/mac/nsimage_cache.h" | |
74 | 73 |
75 using content::OpenURLParams; | 74 using content::OpenURLParams; |
76 using content::Referrer; | 75 using content::Referrer; |
77 using content::UserMetricsAction; | 76 using content::UserMetricsAction; |
78 using content::WebContents; | 77 using content::WebContents; |
79 | 78 |
80 namespace { | 79 namespace { |
81 | 80 |
82 // A value to indicate tab layout should use the full available width of the | 81 // A value to indicate tab layout should use the full available width of the |
83 // view. | 82 // view. |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2233 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { | 2232 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { |
2234 // View hierarchy of the contents view: | 2233 // View hierarchy of the contents view: |
2235 // NSView -- switchView, same for all tabs | 2234 // NSView -- switchView, same for all tabs |
2236 // +- NSView -- TabContentsController's view | 2235 // +- NSView -- TabContentsController's view |
2237 // +- TabContentsViewCocoa | 2236 // +- TabContentsViewCocoa |
2238 // | 2237 // |
2239 // Changing it? Do not forget to modify | 2238 // Changing it? Do not forget to modify |
2240 // -[TabStripController swapInTabAtIndex:] too. | 2239 // -[TabStripController swapInTabAtIndex:] too. |
2241 return [web_contents->GetNativeView() superview]; | 2240 return [web_contents->GetNativeView() superview]; |
2242 } | 2241 } |
OLD | NEW |