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/bookmarks/bookmark_all_tabs_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.h" |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #include "chrome/browser/bookmarks/bookmark_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
10 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 nibName:nibName | 26 nibName:nibName |
27 profile:profile | 27 profile:profile |
28 parent:parent | 28 parent:parent |
29 configuration:configuration])) { | 29 configuration:configuration])) { |
30 } | 30 } |
31 return self; | 31 return self; |
32 } | 32 } |
33 | 33 |
34 - (void)awakeFromNib { | 34 - (void)awakeFromNib { |
35 [self setInitialName: | 35 [self setInitialName: |
36 l10n_util::GetNSStringWithFixup(IDS_BOOMARK_EDITOR_NEW_FOLDER_NAME)]; | 36 l10n_util::GetNSStringWithFixup(IDS_BOOKMARK_EDITOR_NEW_FOLDER_NAME)]; |
37 [super awakeFromNib]; | 37 [super awakeFromNib]; |
38 } | 38 } |
39 | 39 |
40 #pragma mark Bookmark Editing | 40 #pragma mark Bookmark Editing |
41 | 41 |
42 - (void)UpdateActiveTabPairs { | 42 - (void)UpdateActiveTabPairs { |
43 activeTabPairsVector_.clear(); | 43 activeTabPairsVector_.clear(); |
44 Browser* browser = BrowserList::GetLastActive(); | 44 Browser* browser = BrowserList::GetLastActive(); |
45 TabStripModel* tabstrip_model = browser->tabstrip_model(); | 45 TabStripModel* tabstrip_model = browser->tabstrip_model(); |
46 const int tabCount = tabstrip_model->count(); | 46 const int tabCount = tabstrip_model->count(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 return [NSNumber numberWithBool:YES]; | 82 return [NSNumber numberWithBool:YES]; |
83 } | 83 } |
84 | 84 |
85 - (ActiveTabsNameURLPairVector*)activeTabPairsVector { | 85 - (ActiveTabsNameURLPairVector*)activeTabPairsVector { |
86 return &activeTabPairsVector_; | 86 return &activeTabPairsVector_; |
87 } | 87 } |
88 | 88 |
89 @end // BookmarkAllTabsController | 89 @end // BookmarkAllTabsController |
90 | 90 |
OLD | NEW |