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

Side by Side Diff: chrome/browser/ui/panels/panel_overflow_indicator_view.h

Issue 8953040: Add overflow indicator count on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 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_PANELS_PANEL_OVERFLOW_INDICATOR_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_VIEW_H_
7 #pragma once
8
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/panels/panel_overflow_indicator.h"
11 #include "ui/views/controls/label.h"
12
13 namespace gfx {
14 class Font;
15 }
16 namespace views {
17 class Widget;
18 }
19
20 class PanelOverflowIndicatorView : public PanelOverflowIndicator {
21 public:
22 PanelOverflowIndicatorView();
23 virtual ~PanelOverflowIndicatorView();
24
25 // Overridden from OverflowIndicator:
26 virtual void SetCount(int count) OVERRIDE;
27 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
28 virtual int GetHeight() const OVERRIDE;
29 virtual void DrawAttention() OVERRIDE;
30 virtual void StopDrawingAttention() OVERRIDE;
31 virtual int GetCount() const OVERRIDE;
32 virtual bool IsDrawingAttention() const OVERRIDE;
33
34 private:
35 void PaintBackground();
36 void UpdateBounds();
37 void UpdateTitle();
38 void GetFrameMask(const gfx::Rect& rect, gfx::Path* path) const;
39
40 int count_;
jennb 2011/12/19 22:24:50 count_ and is_drawing_attention_ should be the sam
jianli 2011/12/20 01:20:41 Per discussion, we leave as it is now. Will deal w
41 bool is_drawing_attention_;
42 scoped_ptr<views::Widget> widget_;
43 views::Label title_;
44
45 DISALLOW_COPY_AND_ASSIGN(PanelOverflowIndicatorView);
46 };
47
48 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698