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

Side by Side Diff: chrome/browser/ui/cocoa/info_bubble_view.h

Issue 10272035: [Mac] Give info bubble windows a gaussian blur and a smaller border radius. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _CGSDefaultConnection Created 8 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 namespace info_bubble { 11 namespace info_bubble {
12 12
13 const CGFloat kBubbleArrowHeight = 8.0; 13 const CGFloat kBubbleArrowHeight = 8.0;
14 const CGFloat kBubbleArrowWidth = 15.0; 14 const CGFloat kBubbleArrowWidth = 15.0;
15 const CGFloat kBubbleCornerRadius = 8.0; 15 const CGFloat kBubbleCornerRadius = 2.0;
16 const CGFloat kBubbleArrowXOffset = kBubbleArrowWidth + kBubbleCornerRadius; 16 const CGFloat kBubbleArrowXOffset = kBubbleArrowWidth + kBubbleCornerRadius;
17 17
18 enum BubbleArrowLocation { 18 enum BubbleArrowLocation {
19 kTopLeft, 19 kTopLeft,
20 kTopRight, 20 kTopRight,
21 kNoArrow, 21 kNoArrow,
22 }; 22 };
23 23
24 enum BubbleAlignment { 24 enum BubbleAlignment {
25 // The tip of the arrow points to the anchor point. 25 // The tip of the arrow points to the anchor point.
(...skipping 14 matching lines...) Expand all
40 40
41 @property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation; 41 @property(assign, nonatomic) info_bubble::BubbleArrowLocation arrowLocation;
42 @property(assign, nonatomic) info_bubble::BubbleAlignment alignment; 42 @property(assign, nonatomic) info_bubble::BubbleAlignment alignment;
43 43
44 // Returns the point location in view coordinates of the tip of the arrow. 44 // Returns the point location in view coordinates of the tip of the arrow.
45 - (NSPoint)arrowTip; 45 - (NSPoint)arrowTip;
46 46
47 @end 47 @end
48 48
49 #endif // CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_ 49 #endif // CHROME_BROWSER_UI_COCOA_INFO_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm ('k') | chrome/browser/ui/cocoa/info_bubble_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698