| 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 "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 "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/mac_util.h" | 10 #include "base/mac_util.h" |
| 11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
| 12 #include "base/scoped_callback_factory.h" | 12 #include "base/scoped_callback_factory.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
| 14 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #import "chrome/browser/debugger/devtools_window.h" | 16 #import "chrome/browser/debugger/devtools_window.h" |
| 17 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
| 18 #include "chrome/browser/renderer_host/backing_store_mac.h" | 18 #include "chrome/browser/renderer_host/backing_store_mac.h" |
| 19 #include "chrome/browser/renderer_host/render_view_host.h" | 19 #include "chrome/browser/renderer_host/render_view_host.h" |
| 20 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 20 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
| 21 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
| 22 #include "chrome/browser/tab_contents_wrapper.h" | |
| 23 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 22 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 24 #include "chrome/browser/tab_contents_wrapper.h" | |
| 25 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 23 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" |
| 26 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 24 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 27 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 25 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" |
| 28 #import "chrome/browser/ui/cocoa/tab_strip_model_observer_bridge.h" | 26 #import "chrome/browser/ui/cocoa/tab_strip_model_observer_bridge.h" |
| 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 29 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
| 30 #include "grit/app_resources.h" | 29 #include "grit/app_resources.h" |
| 31 #include "skia/ext/skia_utils_mac.h" | 30 #include "skia/ext/skia_utils_mac.h" |
| 32 #include "third_party/skia/include/utils/mac/SkCGUtils.h" | 31 #include "third_party/skia/include/utils/mac/SkCGUtils.h" |
| 33 | 32 |
| 34 const int kTopGradientHeight = 15; | 33 const int kTopGradientHeight = 15; |
| 35 | 34 |
| 36 NSString* const kAnimationIdKey = @"AnimationId"; | 35 NSString* const kAnimationIdKey = @"AnimationId"; |
| 37 NSString* const kAnimationIdFadeIn = @"FadeIn"; | 36 NSString* const kAnimationIdFadeIn = @"FadeIn"; |
| 38 NSString* const kAnimationIdFadeOut = @"FadeOut"; | 37 NSString* const kAnimationIdFadeOut = @"FadeOut"; |
| (...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 tile.set_tab_contents(contents->tab_contents()); | 1427 tile.set_tab_contents(contents->tab_contents()); |
| 1429 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; | 1428 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; |
| 1430 [thumbLayer setTabContents:contents->tab_contents()]; | 1429 [thumbLayer setTabContents:contents->tab_contents()]; |
| 1431 } | 1430 } |
| 1432 | 1431 |
| 1433 - (void)tabStripModelDeleted { | 1432 - (void)tabStripModelDeleted { |
| 1434 [self close]; | 1433 [self close]; |
| 1435 } | 1434 } |
| 1436 | 1435 |
| 1437 @end | 1436 @end |
| OLD | NEW |