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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_separator_view.h

Issue 11418229: alternate ntp: implement right-aligned search token (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed nits from peter 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_SEPARATOR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_SEPARATOR_VIEW_H_
7
8 #include "base/compiler_specific.h"
9 #include "ui/gfx/size.h"
10 #include "ui/views/view.h"
11
12 // LocationBarSeparatorView is used by the location bar view to display a
13 // separator between decorations.
14 // Internally LocationBarSeparatorView draws a 1-px thick vertical line.
15 class LocationBarSeparatorView : public views::View {
16 public:
17 LocationBarSeparatorView();
18 virtual ~LocationBarSeparatorView();
19
20 // Default is solid black color.
21 void set_separator_color(SkColor color) {
22 separator_color_ = color;
23 }
24
25 private:
26 // views::View overrides:
27 virtual gfx::Size GetPreferredSize() OVERRIDE;
28 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
29
30 SkColor separator_color_;
31
32 DISALLOW_COPY_AND_ASSIGN(LocationBarSeparatorView);
33 };
34
35 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_SEPARATOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698