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

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: add tests 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..3233128461fcabc16548a543f19968a2c61b8bf0
--- /dev/null
+++ b/chrome/browser/ui/cocoa/location_bar/separator_decoration.h
@@ -0,0 +1,27 @@
+// 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 separtor between decorations in the omnibox.
kuan 2013/01/23 17:01:32 nit: s/separtor/separator/
sail 2013/01/27 21:11:07 Done.
+class SeparatorDecoration : public LocationBarDecoration {
+ public:
+ SeparatorDecoration();
+ virtual ~SeparatorDecoration();
+
+ // Implement LocationBarDecoration:
+ virtual void DrawInFrame(NSRect frame, NSView* control_view) OVERRIDE;
+ virtual CGFloat GetWidthForSpace(CGFloat width) 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