[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / first_run_bubble.h
blob253d328305ce641701bc166767357ebbd8d2429b
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 virtual void Init() OVERRIDE;
23 private:
24 FirstRunBubble(Browser* browser, views::View* anchor_view);
25 virtual ~FirstRunBubble();
27 // views::LinkListener overrides:
28 virtual 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_