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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm

Issue 12042002: Alternate NTP: Add search token to omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 11 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
Index: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
index e231247f67c642f0ed12ce4b25fca0658755ef6a..055d7e997ca4b34fae365ea9de73c251ef5aaf1a 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
@@ -7,6 +7,7 @@
#include "base/logging.h"
const CGFloat LocationBarDecoration::kOmittedWidth = 0.0;
+const CGFloat LocationBarDecoration::kTextYInset = 4.0;
bool LocationBarDecoration::IsVisible() const {
return visible_;
@@ -68,3 +69,11 @@ NSMenu* LocationBarDecoration::GetMenu() {
ButtonDecoration* LocationBarDecoration::AsButtonDecoration() {
return NULL;
}
+
+bool LocationBarDecoration::ShouldAutoCollapse() const {
+ return false;
+}
+
+SeparatorDecoration* LocationBarDecoration::AsSeparatorDecoration() {
+ return NULL;
+}

Powered by Google App Engine
This is Rietveld 408576698