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

Unified Diff: chrome/browser/ui/cocoa/location_bar/bubble_decoration.h

Issue 2152823004: [Material][Mac] Animation for Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
index 53815888f144b2eeb4f66e44bc78d0453b174d80..645b6823ccb96f431ba47feea5a269ce75d0378d 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
@@ -40,6 +40,8 @@ class BubbleDecoration : public LocationBarDecoration {
NSFont* GetFont() const override;
protected:
+ CGFloat DividerPadding() const;
+
// Helper returning bubble width for the given |image| and |label|
// assuming |font_| (for sizing text). Arguments can be nil.
CGFloat GetWidthForImageAndLabel(NSImage* image, NSString* label);
@@ -48,11 +50,6 @@ class BubbleDecoration : public LocationBarDecoration {
// from. |frame| is the decoration's frame in the containing cell.
NSRect GetImageRectInFrame(NSRect frame);
- private:
- friend class SelectedKeywordDecorationTest;
- FRIEND_TEST_ALL_PREFIXES(SelectedKeywordDecorationTest,
- UsesPartialKeywordIfNarrow);
-
// Image drawn in the left side of the bubble.
base::scoped_nsobject<NSImage> image_;
@@ -62,6 +59,11 @@ class BubbleDecoration : public LocationBarDecoration {
// Contains attribute for drawing |label_|.
base::scoped_nsobject<NSMutableDictionary> attributes_;
+ private:
+ friend class SelectedKeywordDecorationTest;
+ FRIEND_TEST_ALL_PREFIXES(SelectedKeywordDecorationTest,
+ UsesPartialKeywordIfNarrow);
+
// Contains any Retina-only baseline adjustment for |label_|.
CGFloat retina_baseline_offset_;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698