| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_UI_COCOA_FIRST_RUN_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FIRST_RUN_BUBBLE_CONTROLLER_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 7 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 10 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 8 | 11 |
| 9 class Browser; | 12 class Browser; |
| 10 class Profile; | 13 class Profile; |
| 11 | 14 |
| 12 // Manages the first run bubble. | 15 // Manages the first run bubble. |
| 13 @interface FirstRunBubbleController : BaseBubbleController { | 16 @interface FirstRunBubbleController : BaseBubbleController { |
| 14 @private | 17 @private |
| 15 IBOutlet NSTextField* header_; | 18 IBOutlet NSTextField* header_; |
| 16 Browser* browser_; | 19 Browser* browser_; |
| 17 Profile* profile_; | 20 Profile* profile_; |
| 18 } | 21 } |
| 19 | 22 |
| 20 // Creates and shows a first run bubble. |browser| is NULL in unittests. | 23 // Creates and shows a first run bubble. |browser| is NULL in unittests. |
| 21 + (FirstRunBubbleController*) showForView:(NSView*)view | 24 + (FirstRunBubbleController*) showForView:(NSView*)view |
| 22 offset:(NSPoint)offset | 25 offset:(NSPoint)offset |
| 23 browser:(Browser*)browser | 26 browser:(Browser*)browser |
| 24 profile:(Profile*)profile; | 27 profile:(Profile*)profile; |
| 25 | 28 |
| 26 // Handle the bubble's 'Change' button; direct users to search engine options. | 29 // Handle the bubble's 'Change' button; direct users to search engine options. |
| 27 - (IBAction)onChange:(id)sender; | 30 - (IBAction)onChange:(id)sender; |
| 28 | 31 |
| 29 @end | 32 @end |
| 33 |
| 34 #endif // CHROME_BROWSER_UI_COCOA_FIRST_RUN_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |