Chromium Code Reviews| 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_ |