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