Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1458)

Unified Diff: chrome/browser/ui/views/first_run_bubble.h

Issue 9016036: Implement the new first run bubble, clean up old bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/omnibox/location_bar.h ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « chrome/browser/ui/omnibox/location_bar.h ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698