blob: 90e4bd51e5bb0d8a034e72289f482e2ce9967dfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2010 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_CHROMEOS_WM_OVERVIEW_TITLE_H_
#define CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_TITLE_H_
#include "base/string16.h"
#include "views/widget/widget_gtk.h"
class Browser;
class GURL;
namespace gfx {
class Size;
}
namespace chromeos {
class DropShadowLabel;
class WmOverviewSnapshot;
// WmOverviewTitle contains the title and URL of an associated tab
// snapshot.
class WmOverviewTitle : public views::WidgetGtk {
public:
WmOverviewTitle();
void Init(const gfx::Size& size, WmOverviewSnapshot* snapshot);
void SetTitle(const string16& title);
void SetUrl(const GURL& url);
private:
// This contains the title of the tab contents.
DropShadowLabel* title_label_;
// This contains the url of the tab contents.
DropShadowLabel* url_label_;
DISALLOW_COPY_AND_ASSIGN(WmOverviewTitle);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_TITLE_H_
|