- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / first_run_bubble.h
1 // Copyright (c) 2012 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_VIEWS_FIRST_RUN_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
7
8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/link_listener.h"
10
11 class Browser;
12
13 class FirstRunBubble : public views::BubbleDelegateView,
14                        public views::LinkListener {
15  public:
16   // |browser| is the opening browser and is NULL in unittests.
17   static FirstRunBubble* ShowBubble(Browser* browser, views::View* anchor_view);
18
19  protected:
20   // views::BubbleDelegateView overrides:
21   virtual void Init() OVERRIDE;
22
23  private:
24   FirstRunBubble(Browser* browser, views::View* anchor_view);
25   virtual ~FirstRunBubble();
26
27   // views::LinkListener overrides:
28   virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
29
30   Browser* browser_;
31
32   DISALLOW_COPY_AND_ASSIGN(FirstRunBubble);
33 };
34
35 #endif  // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_