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