Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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 <limits> 9 #include <limits>
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 48 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
49 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 49 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
50 #include "chrome/browser/ui/tabs/tab_menu_model.h" 50 #include "chrome/browser/ui/tabs/tab_menu_model.h"
51 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/pref_names.h" 52 #include "chrome/common/pref_names.h"
53 #include "content/browser/tab_contents/navigation_controller.h" 53 #include "content/browser/tab_contents/navigation_controller.h"
54 #include "content/browser/tab_contents/navigation_entry.h" 54 #include "content/browser/tab_contents/navigation_entry.h"
55 #include "content/browser/tab_contents/tab_contents.h" 55 #include "content/browser/tab_contents/tab_contents.h"
56 #include "content/browser/tab_contents/tab_contents_view.h" 56 #include "content/browser/tab_contents/tab_contents_view.h"
57 #include "content/browser/user_metrics.h" 57 #include "content/browser/user_metrics.h"
58 #include "content/common/notification_service.h"
59 #include "grit/generated_resources.h" 58 #include "grit/generated_resources.h"
60 #include "grit/theme_resources.h" 59 #include "grit/theme_resources.h"
61 #include "grit/theme_resources_standard.h" 60 #include "grit/theme_resources_standard.h"
62 #include "grit/ui_resources.h" 61 #include "grit/ui_resources.h"
63 #include "skia/ext/skia_utils_mac.h" 62 #include "skia/ext/skia_utils_mac.h"
64 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 63 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
65 #include "ui/base/l10n/l10n_util.h" 64 #include "ui/base/l10n/l10n_util.h"
66 #include "ui/base/resource/resource_bundle.h" 65 #include "ui/base/resource/resource_bundle.h"
67 #include "ui/gfx/image/image.h" 66 #include "ui/gfx/image/image.h"
68 #include "ui/gfx/mac/nsimage_cache.h" 67 #include "ui/gfx/mac/nsimage_cache.h"
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 NSInteger index = [self indexFromModelIndex:modelIndex]; 2017 NSInteger index = [self indexFromModelIndex:modelIndex];
2019 BrowserWindowController* controller = 2018 BrowserWindowController* controller =
2020 (BrowserWindowController*)[[switchView_ window] windowController]; 2019 (BrowserWindowController*)[[switchView_ window] windowController];
2021 DCHECK(index >= 0); 2020 DCHECK(index >= 0);
2022 if (index >= 0) { 2021 if (index >= 0) {
2023 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; 2022 [controller setTab:[self viewAtIndex:index] isDraggable:YES];
2024 } 2023 }
2025 } 2024 }
2026 2025
2027 @end 2026 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm ('k') | chrome/browser/ui/cocoa/theme_install_bubble_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698