Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_H_ | |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 namespace gfx { | |
| 10 class Rect; | |
| 11 } | |
| 12 | |
| 13 class PanelOverflowIndicator { | |
|
jennb
2011/12/19 22:24:50
Class comment please.
jianli
2011/12/20 01:20:41
Done.
| |
| 14 public: | |
| 15 static PanelOverflowIndicator* Create(); | |
| 16 | |
| 17 virtual ~PanelOverflowIndicator() { } | |
| 18 | |
| 19 virtual void SetCount(int count) = 0; | |
| 20 virtual void SetBounds(const gfx::Rect& bounds) = 0; | |
| 21 virtual int GetHeight() const = 0; | |
| 22 virtual void DrawAttention() = 0; | |
| 23 virtual void StopDrawingAttention() = 0; | |
| 24 | |
| 25 // These are needed for testing purpose. | |
| 26 virtual int GetCount() const = 0; | |
| 27 virtual bool IsDrawingAttention() const = 0; | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_H_ | |
| OLD | NEW |