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

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

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_cell.mm ('k') | chrome/browser/cocoa/download_item_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698