| 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 #include "ui/gfx/rect.h" | |
| 10 | |
| 11 // An interfac that encapsulates the logic to support showing the overflow | |
| 12 // indicator count "+N" for different platform. | |
| 13 class PanelOverflowIndicator { | |
| 14 public: | |
| 15 static PanelOverflowIndicator* Create(); | |
| 16 | |
| 17 virtual ~PanelOverflowIndicator() { } | |
| 18 | |
| 19 // Returns the height of indicator widget. | |
| 20 virtual int GetHeight() const = 0; | |
| 21 | |
| 22 // Gets or sets the bounds, in screen coordinates. | |
| 23 virtual gfx::Rect GetBounds() const = 0; | |
| 24 virtual void SetBounds(const gfx::Rect& bounds) = 0; | |
| 25 | |
| 26 // The count value reflects the number of additional overflow panels that are | |
| 27 // not shown. | |
| 28 virtual int GetCount() const = 0; | |
| 29 virtual void SetCount(int count) = 0; | |
| 30 | |
| 31 // The indicator's background could be changed to draw the user's attention. | |
| 32 virtual void DrawAttention() = 0; | |
| 33 virtual void StopDrawingAttention() = 0; | |
| 34 virtual bool IsDrawingAttention() const = 0; | |
| 35 }; | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_H_ | |
| OLD | NEW |