| Index: chrome/browser/ui/panels/panel_overflow_indicator.h
|
| diff --git a/chrome/browser/ui/panels/panel_overflow_indicator.h b/chrome/browser/ui/panels/panel_overflow_indicator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9166ef10f2cdbc23f2d22d463f8a768aa3b47cb1
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/panels/panel_overflow_indicator.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2011 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_PANELS_PANEL_OVERFLOW_INDICATOR_H_
|
| +#define CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_H_
|
| +#pragma once
|
| +
|
| +namespace gfx {
|
| +class Rect;
|
| +}
|
| +
|
| +// An interfac that encapsulates the logic to support showing the overflow
|
| +// indicator count "+?" for different platform. This value denotes the number
|
| +// of overflow panels that are not shown.
|
| +class PanelOverflowIndicator {
|
| + public:
|
| + static PanelOverflowIndicator* Create();
|
| +
|
| + virtual ~PanelOverflowIndicator() { }
|
| +
|
| + virtual void SetBounds(const gfx::Rect& bounds) = 0;
|
| + virtual int GetHeight() const = 0;
|
| + virtual void SetCount(int count) = 0;
|
| + virtual void DrawAttention() = 0;
|
| + virtual void StopDrawingAttention() = 0;
|
| +
|
| + // These are needed for testing purpose.
|
| + virtual int GetCount() const = 0;
|
| + virtual bool IsDrawingAttention() const = 0;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_INDICATOR_H_
|
|
|