OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tabpose_window.h" | 5 #import "chrome/browser/ui/cocoa/tabpose_window.h" |
6 | 6 |
7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/browser/renderer_host/render_widget_host_view_mac.h" | 34 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
35 #include "content/browser/tab_contents/tab_contents.h" | 35 #include "content/browser/tab_contents/tab_contents.h" |
36 #include "grit/theme_resources.h" | 36 #include "grit/theme_resources.h" |
37 #include "grit/ui_resources.h" | 37 #include "grit/ui_resources.h" |
38 #include "skia/ext/skia_utils_mac.h" | 38 #include "skia/ext/skia_utils_mac.h" |
39 #include "third_party/skia/include/utils/mac/SkCGUtils.h" | 39 #include "third_party/skia/include/utils/mac/SkCGUtils.h" |
40 #include "ui/base/resource/resource_bundle.h" | 40 #include "ui/base/resource/resource_bundle.h" |
41 #include "ui/gfx/image/image.h" | 41 #include "ui/gfx/image/image.h" |
42 #include "ui/gfx/scoped_cg_context_save_gstate_mac.h" | 42 #include "ui/gfx/scoped_cg_context_save_gstate_mac.h" |
43 | 43 |
| 44 using content::BrowserThread; |
| 45 |
44 // Height of the bottom gradient, in pixels. | 46 // Height of the bottom gradient, in pixels. |
45 const CGFloat kBottomGradientHeight = 50; | 47 const CGFloat kBottomGradientHeight = 50; |
46 | 48 |
47 // The shade of gray at the top of the window. There's a gradient from | 49 // The shade of gray at the top of the window. There's a gradient from |
48 // this to |kCentralGray| at the top of the window. | 50 // this to |kCentralGray| at the top of the window. |
49 const CGFloat kTopGray = 0.77; | 51 const CGFloat kTopGray = 0.77; |
50 | 52 |
51 // The shade of gray at the center of the window. Most of the window background | 53 // The shade of gray at the center of the window. Most of the window background |
52 // has this color. | 54 // has this color. |
53 const CGFloat kCentralGray = 0.6; | 55 const CGFloat kCentralGray = 0.6; |
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 tile.set_tab_contents(contents); | 1682 tile.set_tab_contents(contents); |
1681 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; | 1683 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; |
1682 [thumbLayer setTabContents:contents]; | 1684 [thumbLayer setTabContents:contents]; |
1683 } | 1685 } |
1684 | 1686 |
1685 - (void)tabStripModelDeleted { | 1687 - (void)tabStripModelDeleted { |
1686 [self close]; | 1688 [self close]; |
1687 } | 1689 } |
1688 | 1690 |
1689 @end | 1691 @end |
OLD | NEW |