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

Side by Side Diff: chrome/browser/cocoa/bookmark_bar_folder_controller.mm

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
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/cocoa/bookmark_bar_folder_controller.h"
Evan Martin 2010/08/24 23:42:50 Fixed this one locally.
6 #include "base/mac_util.h" 5 #include "base/mac_util.h"
7 #include "base/nsimage_cache_mac.h" 6 #include "base/nsimage_cache_mac.h"
8 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/bookmarks/bookmark_utils.h" 9 #include "chrome/browser/bookmarks/bookmark_utils.h"
11 #import "chrome/browser/browser_theme_provider.h"
12 #import "chrome/browser/cocoa/bookmark_bar_constants.h" // namespace bookmarks 10 #import "chrome/browser/cocoa/bookmark_bar_constants.h" // namespace bookmarks
13 #import "chrome/browser/cocoa/bookmark_bar_controller.h" // namespace bookmarks 11 #import "chrome/browser/cocoa/bookmark_bar_controller.h" // namespace bookmarks
12 #import "chrome/browser/cocoa/bookmark_bar_folder_button_cell.h"
13 #import "chrome/browser/cocoa/bookmark_bar_folder_controller.h"
14 #import "chrome/browser/cocoa/bookmark_bar_folder_hover_state.h"
14 #import "chrome/browser/cocoa/bookmark_bar_folder_view.h" 15 #import "chrome/browser/cocoa/bookmark_bar_folder_view.h"
15 #import "chrome/browser/cocoa/bookmark_bar_folder_button_cell.h"
16 #import "chrome/browser/cocoa/bookmark_bar_folder_hover_state.h"
17 #import "chrome/browser/cocoa/bookmark_folder_target.h" 16 #import "chrome/browser/cocoa/bookmark_folder_target.h"
18 #import "chrome/browser/cocoa/browser_window_controller.h" 17 #import "chrome/browser/cocoa/browser_window_controller.h"
19 #import "chrome/browser/cocoa/event_utils.h" 18 #import "chrome/browser/cocoa/event_utils.h"
19 #import "chrome/browser/themes/browser_theme_provider.h"
20 20
21 namespace { 21 namespace {
22 22
23 // Frequency of the scrolling timer in seconds. 23 // Frequency of the scrolling timer in seconds.
24 const NSTimeInterval kBookmarkBarFolderScrollInterval = 0.1; 24 const NSTimeInterval kBookmarkBarFolderScrollInterval = 0.1;
25 25
26 // Amount to scroll by per timer fire. We scroll rather slowly; to 26 // Amount to scroll by per timer fire. We scroll rather slowly; to
27 // accomodate we do several at a time. 27 // accomodate we do several at a time.
28 const CGFloat kBookmarkBarFolderScrollAmount = 28 const CGFloat kBookmarkBarFolderScrollAmount =
29 3 * (bookmarks::kBookmarkButtonHeight + 29 3 * (bookmarks::kBookmarkButtonHeight +
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 1408
1409 - (void)setIgnoreAnimations:(BOOL)ignore { 1409 - (void)setIgnoreAnimations:(BOOL)ignore {
1410 ignoreAnimations_ = ignore; 1410 ignoreAnimations_ = ignore;
1411 } 1411 }
1412 1412
1413 - (BookmarkButton*)buttonThatMouseIsIn { 1413 - (BookmarkButton*)buttonThatMouseIsIn {
1414 return buttonThatMouseIsIn_; 1414 return buttonThatMouseIsIn_;
1415 } 1415 }
1416 1416
1417 @end // BookmarkBarFolderController 1417 @end // BookmarkBarFolderController
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_controller.mm ('k') | chrome/browser/cocoa/bookmark_bar_toolbar_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698