Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / views / first_run_bubble.h
blobb12a05a26ba1725426f1682f16de435b3ff2a6ed
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/link_listener.h"
11 class Browser;
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);
19 protected:
20 // views::BubbleDelegateView overrides:
21 void Init() override;
23 private:
24 FirstRunBubble(Browser* browser, views::View* anchor_view);
25 ~FirstRunBubble() override;
27 // views::LinkListener overrides:
28 void LinkClicked(views::Link* source, int event_flags) override;
30 Browser* browser_;
32 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble);
35 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_