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

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

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/separator_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/separator_decoration.h b/chrome/browser/ui/cocoa/location_bar/separator_decoration.h
new file mode 100644
index 0000000000000000000000000000000000000000..94c550d979cba31f11487c2e0f17db15cae10209
--- /dev/null
+++ b/chrome/browser/ui/cocoa/location_bar/separator_decoration.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 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.
+
+#ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEPARATOR_DECORATION_H_
+#define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEPARATOR_DECORATION_H_
+
+#include "base/compiler_specific.h"
+#import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
+
+// This class is used to draw a separator between decorations in the omnibox.
+class SeparatorDecoration : public LocationBarDecoration {
+ public:
+ SeparatorDecoration();
+ virtual ~SeparatorDecoration();
+
+ // Implement LocationBarDecoration:
+ virtual void DrawInFrame(NSRect frame, NSView* control_view) OVERRIDE;
+ virtual CGFloat GetWidthForSpace(CGFloat width, CGFloat text_width) OVERRIDE;
+ virtual bool IsSeparator() const OVERRIDE;
+
+ private:
+ NSColor* SeparatorColor(NSView* view) const;
+
+ DISALLOW_COPY_AND_ASSIGN(SeparatorDecoration);
+};
+
+#endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SEPARATOR_DECORATION_H_

Powered by Google App Engine
This is Rietveld 408576698