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 #include "base/basictypes.h" | |
6 #include "base/mac/scoped_nsobject.h" | 5 #include "base/mac/scoped_nsobject.h" |
7 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" |
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" |
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" | 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" |
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" | 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" |
14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
15 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 14 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 DeleteBookmark([folder parentButton], profile()); | 1665 DeleteBookmark([folder parentButton], profile()); |
1667 EXPECT_FALSE([folder folderController]); | 1666 EXPECT_FALSE([folder folderController]); |
1668 } | 1667 } |
1669 | 1668 |
1670 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so | 1669 // TODO(jrg): draggingEntered: and draggingExited: trigger timers so |
1671 // they are hard to test. Factor out "fire timers" into routines | 1670 // they are hard to test. Factor out "fire timers" into routines |
1672 // which can be overridden to fire immediately to make behavior | 1671 // which can be overridden to fire immediately to make behavior |
1673 // confirmable. | 1672 // confirmable. |
1674 // There is a similar problem with mouseEnteredButton: and | 1673 // There is a similar problem with mouseEnteredButton: and |
1675 // mouseExitedButton:. | 1674 // mouseExitedButton:. |
OLD | NEW |