diff options
author | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 05:18:50 +0000 |
---|---|---|
committer | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 05:18:50 +0000 |
commit | d64f2a0ea7adada3e5221782e4739a9b858c53fd (patch) | |
tree | 08ca665b6c99e92bc12217dad7db5ed016bfca51 /chrome/browser/cocoa/info_bubble_view.h | |
parent | 87eacb992a5fcc517a29a7097937df217b6839ff (diff) | |
download | chromium_src-d64f2a0ea7adada3e5221782e4739a9b858c53fd.zip chromium_src-d64f2a0ea7adada3e5221782e4739a9b858c53fd.tar.gz chromium_src-d64f2a0ea7adada3e5221782e4739a9b858c53fd.tar.bz2 |
o Renames the bookmark bubble class to InfoBubble in a step to make it more reusable.
o Adds the ability to position the arrow of the bubble on the top right as well as the top left (default).
BUG=none
TEST=Nothing should change visually. This is prep for use by browser action popups and the first run UI.
Review URL: http://codereview.chromium.org/385060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/info_bubble_view.h')
-rw-r--r-- | chrome/browser/cocoa/info_bubble_view.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/info_bubble_view.h b/chrome/browser/cocoa/info_bubble_view.h new file mode 100644 index 0000000..fc95bc9 --- /dev/null +++ b/chrome/browser/cocoa/info_bubble_view.h @@ -0,0 +1,21 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import <Cocoa/Cocoa.h> + +enum BubbleArrowLocation { + kTopLeft, + kTopRight, +}; + +// Content view for a bubble with an arrow showing arbitrary content. +// This is where nonrectangular drawing happens. +@interface InfoBubbleView : NSView { + @private + BubbleArrowLocation arrowLocation_; +} + +@property (assign, nonatomic) BubbleArrowLocation arrowLocation; + +@end |