OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" |
6 | 6 |
7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
8 #include "base/mac/mac_util.h" | |
9 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
10 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" | 9 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" |
11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" |
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h" | 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h" |
15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
16 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 15 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
17 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 16 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
18 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 NSInteger idx = [menu indexOfItemWithRepresentedObject:parentValue]; | 400 NSInteger idx = [menu indexOfItemWithRepresentedObject:parentValue]; |
402 DCHECK(idx != -1); | 401 DCHECK(idx != -1); |
403 [folderPopUpButton_ selectItemAtIndex:idx]; | 402 [folderPopUpButton_ selectItemAtIndex:idx]; |
404 } | 403 } |
405 | 404 |
406 - (NSPopUpButton*)folderPopUpButton { | 405 - (NSPopUpButton*)folderPopUpButton { |
407 return folderPopUpButton_; | 406 return folderPopUpButton_; |
408 } | 407 } |
409 | 408 |
410 @end // implementation BookmarkBubbleController(ExposedForUnitTesting) | 409 @end // implementation BookmarkBubbleController(ExposedForUnitTesting) |
OLD | NEW |