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

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

Issue 8953040: Add overflow indicator count on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybot 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_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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_overflow_browsertest.cc ('k') | chrome/browser/ui/panels/panel_overflow_indicator_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698