| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ |
| 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ | 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "chrome/browser/views/info_bubble.h" | 9 #include "chrome/browser/views/info_bubble.h" |
| 10 | 10 |
| 11 class Profile; |
| 12 |
| 11 class FirstRunBubble : public InfoBubble, | 13 class FirstRunBubble : public InfoBubble, |
| 12 public InfoBubbleDelegate { | 14 public InfoBubbleDelegate { |
| 13 public: | 15 public: |
| 14 static FirstRunBubble* Show(HWND parent_hwnd, | 16 static FirstRunBubble* Show(Profile* profile, HWND parent_hwnd, |
| 15 const gfx::Rect& position_relative_to); | 17 const gfx::Rect& position_relative_to); |
| 16 | 18 |
| 17 FirstRunBubble() | 19 FirstRunBubble() |
| 18 : enable_window_method_factory_(this), | 20 : enable_window_method_factory_(this), |
| 19 has_been_activated_(false) { | 21 has_been_activated_(false) { |
| 20 } | 22 } |
| 21 | 23 |
| 22 virtual ~FirstRunBubble() { | 24 virtual ~FirstRunBubble() { |
| 23 // We should have called RevokeAll on the method factory already. | 25 // We should have called RevokeAll on the method factory already. |
| 24 DCHECK(enable_window_method_factory_.empty()); | 26 DCHECK(enable_window_method_factory_.empty()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 40 // Whether we have already been activated. | 42 // Whether we have already been activated. |
| 41 bool has_been_activated_; | 43 bool has_been_activated_; |
| 42 | 44 |
| 43 ScopedRunnableMethodFactory<FirstRunBubble> enable_window_method_factory_; | 45 ScopedRunnableMethodFactory<FirstRunBubble> enable_window_method_factory_; |
| 44 | 46 |
| 45 DISALLOW_EVIL_CONSTRUCTORS(FirstRunBubble); | 47 DISALLOW_EVIL_CONSTRUCTORS(FirstRunBubble); |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ | 50 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_BUBBLE_H__ |
| 49 | 51 |
| OLD | NEW |