| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_toolbar_view.h" | 5 #import "chrome/browser/cocoa/bookmark_bar_toolbar_view.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas_paint.h" | |
| 8 #include "app/theme_provider.h" | 7 #include "app/theme_provider.h" |
| 9 #include "gfx/rect.h" | 8 #include "gfx/rect.h" |
| 10 #include "chrome/browser/browser_theme_provider.h" | 9 #include "chrome/browser/browser_theme_provider.h" |
| 11 #import "chrome/browser/cocoa/bookmark_bar_constants.h" | 10 #import "chrome/browser/cocoa/bookmark_bar_constants.h" |
| 12 #import "chrome/browser/cocoa/bookmark_bar_controller.h" | 11 #import "chrome/browser/cocoa/bookmark_bar_controller.h" |
| 13 #import "chrome/browser/cocoa/browser_window_controller.h" | 12 #import "chrome/browser/cocoa/browser_window_controller.h" |
| 14 #import "chrome/browser/cocoa/themed_window.h" | 13 #import "chrome/browser/cocoa/themed_window.h" |
| 15 #include "chrome/browser/ntp_background_util.h" | 14 #include "chrome/browser/ntp_background_util.h" |
| 15 #include "gfx/canvas_paint.h" |
| 16 | 16 |
| 17 const CGFloat kBorderRadius = 3.0; | 17 const CGFloat kBorderRadius = 3.0; |
| 18 | 18 |
| 19 @interface BookmarkBarToolbarView (Private) | 19 @interface BookmarkBarToolbarView (Private) |
| 20 - (void)drawRectAsBubble:(NSRect)rect; | 20 - (void)drawRectAsBubble:(NSRect)rect; |
| 21 @end | 21 @end |
| 22 | 22 |
| 23 @implementation BookmarkBarToolbarView | 23 @implementation BookmarkBarToolbarView |
| 24 | 24 |
| 25 - (BOOL)isOpaque { | 25 - (BOOL)isOpaque { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 NSWidth(bounds) - 2 * morph * bookmarks::kNTPBookmarkBarPadding - 2 * 0.5; | 126 NSWidth(bounds) - 2 * morph * bookmarks::kNTPBookmarkBarPadding - 2 * 0.5; |
| 127 [divider moveToPoint:dividerStart]; | 127 [divider moveToPoint:dividerStart]; |
| 128 [divider relativeLineToPoint:NSMakePoint(dividerWidth, 0)]; | 128 [divider relativeLineToPoint:NSMakePoint(dividerWidth, 0)]; |
| 129 [divider stroke]; | 129 [divider stroke]; |
| 130 | 130 |
| 131 // Restore the graphics context. | 131 // Restore the graphics context. |
| 132 [context restoreGraphicsState]; | 132 [context restoreGraphicsState]; |
| 133 } | 133 } |
| 134 | 134 |
| 135 @end // @implementation BookmarkBarToolbarView | 135 @end // @implementation BookmarkBarToolbarView |
| OLD | NEW |