| 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 <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
| 13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 14 #include "base/scoped_callback_factory.h" | 14 #include "base/scoped_callback_factory.h" |
| 15 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
| 16 #include "chrome/app/chrome_command_ids.h" | 16 #include "chrome/app/chrome_command_ids.h" |
| 17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 18 #import "chrome/browser/debugger/devtools_window.h" | 18 #import "chrome/browser/debugger/devtools_window.h" |
| 19 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/renderer_host/backing_store_mac.h" | 21 #include "chrome/browser/renderer_host/backing_store_mac.h" |
| 22 #include "chrome/browser/renderer_host/render_view_host.h" | 22 #include "chrome/browser/renderer_host/render_view_host.h" |
| 23 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 23 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
| 24 #include "chrome/browser/tab_contents/tab_contents.h" | 24 #include "chrome/browser/tab_contents/tab_contents.h" |
| 25 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 25 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 26 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 26 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" |
| 27 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 27 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 28 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 28 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
| 29 #import "chrome/browser/ui/cocoa/tab_strip_model_observer_bridge.h" | 29 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" |
| 30 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 30 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "gfx/scoped_cg_context_state_mac.h" | 32 #include "gfx/scoped_cg_context_state_mac.h" |
| 33 #include "grit/app_resources.h" | 33 #include "grit/app_resources.h" |
| 34 #include "grit/theme_resources.h" | 34 #include "grit/theme_resources.h" |
| 35 #include "skia/ext/skia_utils_mac.h" | 35 #include "skia/ext/skia_utils_mac.h" |
| 36 #include "third_party/skia/include/utils/mac/SkCGUtils.h" | 36 #include "third_party/skia/include/utils/mac/SkCGUtils.h" |
| 37 | 37 |
| 38 const int kTopGradientHeight = 15; | 38 const int kTopGradientHeight = 15; |
| 39 | 39 |
| (...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1646 tile.set_tab_contents(contents->tab_contents()); | 1646 tile.set_tab_contents(contents->tab_contents()); |
| 1647 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; | 1647 ThumbnailLayer* thumbLayer = [allThumbnailLayers_ objectAtIndex:index]; |
| 1648 [thumbLayer setTabContents:contents->tab_contents()]; | 1648 [thumbLayer setTabContents:contents->tab_contents()]; |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 - (void)tabStripModelDeleted { | 1651 - (void)tabStripModelDeleted { |
| 1652 [self close]; | 1652 [self close]; |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 @end | 1655 @end |
| OLD | NEW |