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 |
11 #include "app/mac/nsimage_cache.h" | |
12 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
13 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
14 #include "base/memory/scoped_callback_factory.h" | 13 #include "base/memory/scoped_callback_factory.h" |
15 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
16 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
17 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
18 #import "chrome/browser/debugger/devtools_window.h" | 17 #import "chrome/browser/debugger/devtools_window.h" |
19 #include "chrome/browser/extensions/extension_tab_helper.h" | 18 #include "chrome/browser/extensions/extension_tab_helper.h" |
20 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
32 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
33 #include "content/browser/renderer_host/backing_store_mac.h" | 32 #include "content/browser/renderer_host/backing_store_mac.h" |
34 #include "content/browser/renderer_host/render_view_host.h" | 33 #include "content/browser/renderer_host/render_view_host.h" |
35 #include "content/browser/tab_contents/tab_contents.h" | 34 #include "content/browser/tab_contents/tab_contents.h" |
36 #include "grit/app_resources.h" | 35 #include "grit/app_resources.h" |
37 #include "grit/theme_resources.h" | 36 #include "grit/theme_resources.h" |
38 #include "skia/ext/skia_utils_mac.h" | 37 #include "skia/ext/skia_utils_mac.h" |
39 #include "third_party/skia/include/utils/mac/SkCGUtils.h" | 38 #include "third_party/skia/include/utils/mac/SkCGUtils.h" |
40 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
41 #include "ui/gfx/image/image.h" | 40 #include "ui/gfx/image/image.h" |
41 #include "ui/gfx/mac/nsimage_cache.h" | |
Robert Sesek
2011/06/21 21:24:00
Used?
tfarina
2011/06/21 23:01:33
Removed.
| |
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 // Height of the bottom gradient, in pixels. | 44 // Height of the bottom gradient, in pixels. |
45 const CGFloat kBottomGradientHeight = 50; | 45 const CGFloat kBottomGradientHeight = 50; |
46 | 46 |
47 // The shade of gray at the top of the window. There's a gradient from | 47 // 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. | 48 // this to |kCentralGray| at the top of the window. |
49 const CGFloat kTopGray = 0.77; | 49 const CGFloat kTopGray = 0.77; |
50 | 50 |
51 // The shade of gray at the center of the window. Most of the window background | 51 // The shade of gray at the center of the window. Most of the window background |
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1703 tile.set_tab_contents(contents); | 1703 tile.set_tab_contents(contents); |
1704 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; | 1704 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; |
1705 [thumbLayer setTabContents:contents]; | 1705 [thumbLayer setTabContents:contents]; |
1706 } | 1706 } |
1707 | 1707 |
1708 - (void)tabStripModelDeleted { | 1708 - (void)tabStripModelDeleted { |
1709 [self close]; | 1709 [self close]; |
1710 } | 1710 } |
1711 | 1711 |
1712 @end | 1712 @end |
OLD | NEW |