| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This is the GTK implementation of the First Run bubble, the dialog box | 5 // This is the GTK implementation of the First Run bubble, the dialog box |
| 6 // presented on first run of Chromium. There can only ever be a single | 6 // presented on first run of Chromium. There can only ever be a single |
| 7 // bubble open, so the class presents only static methods. | 7 // bubble open, so the class presents only static methods. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ | 9 #ifndef CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ |
| 10 #define CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ | 10 #define CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include <gtk/gtk.h> | 13 #include <gtk/gtk.h> |
| 14 | 14 |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "chrome/browser/first_run/first_run.h" | 18 #include "chrome/browser/first_run/first_run.h" |
| 19 #include "chrome/browser/gtk/info_bubble_gtk.h" | 19 #include "chrome/browser/gtk/info_bubble_gtk.h" |
| 20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/common/notification_observer.h" | 21 #include "chrome/common/notification_observer.h" |
| 22 #include "chrome/common/notification_registrar.h" | 22 #include "chrome/common/notification_registrar.h" |
| 23 | 23 |
| 24 class FirstRunBubble : public InfoBubbleGtkDelegate, | 24 class FirstRunBubble : public InfoBubbleGtkDelegate, |
| 25 public NotificationObserver { | 25 public NotificationObserver { |
| 26 public: | 26 public: |
| 27 // Shows the first run bubble, pointing at |rect|. | 27 // Shows the first run bubble, pointing at |rect|. |
| 28 static void Show(Profile* profile, | 28 static void Show(Profile* profile, |
| 29 GtkWidget* anchor, | 29 GtkWidget* anchor, |
| 30 const gfx::Rect& rect, | 30 const gfx::Rect& rect, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 std::vector<GtkWidget*> labels_; | 80 std::vector<GtkWidget*> labels_; |
| 81 | 81 |
| 82 InfoBubbleGtk* bubble_; | 82 InfoBubbleGtk* bubble_; |
| 83 | 83 |
| 84 NotificationRegistrar registrar_; | 84 NotificationRegistrar registrar_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble); | 86 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ | 89 #endif // CHROME_BROWSER_GTK_FIRST_RUN_BUBBLE_H_ |
| OLD | NEW |