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

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

Issue 2102853002: [Mac][Material Design] Adjust (i) and lock Omnibox icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 6874ec9ae883f5055bb44911ffb8f57a86cd8532..53815888f144b2eeb4f66e44bc78d0453b174d80 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
@@ -28,7 +28,7 @@ class BubbleDecoration : public LocationBarDecoration {
void SetLabel(NSString* label);
void SetTextColor(NSColor* text_color);
void SetFont(NSFont* font);
- void SetBaselineOffset(CGFloat offset);
+ void SetRetinaBaselineOffset(CGFloat offset);
virtual ui::NinePartImageIds GetBubbleImageIds() = 0;
// Implement |LocationBarDecoration|.
@@ -62,8 +62,8 @@ class BubbleDecoration : public LocationBarDecoration {
// Contains attribute for drawing |label_|.
base::scoped_nsobject<NSMutableDictionary> attributes_;
- // Contains any baseline adjustment for the text.
- CGFloat baseline_offset_;
+ // Contains any Retina-only baseline adjustment for |label_|.
+ CGFloat retina_baseline_offset_;
DISALLOW_COPY_AND_ASSIGN(BubbleDecoration);
};
« 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