Index: chrome/browser/ui/views/first_run_bubble.h |
diff --git a/chrome/browser/ui/views/first_run_bubble.h b/chrome/browser/ui/views/first_run_bubble.h |
index 0d5f8308664c4a35993bedcbe8aa39ea351f81c2..f5d6be8b231118f90fe438dfc0d3d2123a53c6da 100644 |
--- a/chrome/browser/ui/views/first_run_bubble.h |
+++ b/chrome/browser/ui/views/first_run_bubble.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -6,20 +6,16 @@ |
#define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_ |
#pragma once |
-#include "chrome/browser/first_run/first_run.h" |
#include "ui/views/bubble/bubble_delegate.h" |
#include "ui/views/controls/button/button.h" |
+#include "ui/views/controls/link_listener.h" |
class Profile; |
class FirstRunBubble : public views::BubbleDelegateView, |
- public views::ButtonListener { |
+ public views::LinkListener { |
public: |
- static FirstRunBubble* ShowBubble( |
- Profile* profile, |
- views::View* anchor_view, |
- views::BubbleBorder::ArrowLocation location, |
- FirstRun::BubbleType bubble_type); |
+ static FirstRunBubble* ShowBubble(Profile* profile, views::View* anchor_view); |
// views::BubbleDelegateView overrides: |
virtual gfx::Rect GetAnchorRect() OVERRIDE; |
@@ -29,20 +25,14 @@ class FirstRunBubble : public views::BubbleDelegateView, |
virtual void Init() OVERRIDE; |
private: |
- FirstRunBubble(Profile* profile, |
- views::View* anchor_view, |
- views::BubbleBorder::ArrowLocation arrow_location, |
- FirstRun::BubbleType bubble_type); |
+ FirstRunBubble(Profile* profile, views::View* anchor_view); |
virtual ~FirstRunBubble(); |
- // views::ButtonListener overrides: |
- virtual void ButtonPressed(views::Button* sender, |
- const views::Event& event) OVERRIDE; |
+ // views::LinkListener overrides: |
+ virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
Profile* profile_; |
- FirstRun::BubbleType bubble_type_; |
- |
DISALLOW_COPY_AND_ASSIGN(FirstRunBubble); |
}; |