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