| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #import "base/ref_counted.h" |
| 9 #import "base/scoped_nsobject.h" | 10 #import "base/scoped_nsobject.h" |
| 10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 11 | 12 |
| 12 class Profile; | 13 class Profile; |
| 13 class SearchEngineDialogControllerBridge; | 14 class SearchEngineDialogControllerBridge; |
| 14 class TemplateURL; | 15 class TemplateURL; |
| 15 class TemplateURLModel; | 16 class TemplateURLModel; |
| 16 | 17 |
| 17 // Class that acts as a controller for the search engine choice dialog. | 18 // Class that acts as a controller for the search engine choice dialog. |
| 18 @interface SearchEngineDialogController : NSWindowController { | 19 @interface SearchEngineDialogController : NSWindowController { |
| 19 @private | 20 @private |
| 20 // Our current profile. | 21 // Our current profile. |
| 21 Profile* profile_; | 22 Profile* profile_; |
| 22 | 23 |
| 23 // If logos are to be displayed in random order. Used for UX testing. | 24 // If logos are to be displayed in random order. Used for UX testing. |
| 24 bool randomize_; | 25 bool randomize_; |
| 25 | 26 |
| 26 // Owned by the profile_. | 27 // Owned by the profile_. |
| 27 TemplateURLModel* searchEnginesModel_; | 28 TemplateURLModel* searchEnginesModel_; |
| 28 | 29 |
| 29 // Bridge to the C++ world. | 30 // Bridge to the C++ world. |
| 30 scoped_ptr<SearchEngineDialogControllerBridge> bridge_; | 31 scoped_refptr<SearchEngineDialogControllerBridge> bridge_; |
| 31 | 32 |
| 32 // Offered search engine choices. | 33 // Offered search engine choices. |
| 33 std::vector<const TemplateURL*> choices_; | 34 std::vector<const TemplateURL*> choices_; |
| 34 | 35 |
| 35 IBOutlet NSImageView* headerImageView_; | 36 IBOutlet NSImageView* headerImageView_; |
| 36 IBOutlet NSView* searchEngineView_; | 37 IBOutlet NSView* searchEngineView_; |
| 37 } | 38 } |
| 38 | 39 |
| 39 @property(assign, nonatomic) Profile* profile; | 40 @property(assign, nonatomic) Profile* profile; |
| 40 @property(assign, nonatomic) bool randomize; | 41 @property(assign, nonatomic) bool randomize; |
| 41 | 42 |
| 42 // Properties for bindings. | 43 // Properties for bindings. |
| 43 @property(readonly) NSFont* mainLabelFont; | 44 @property(readonly) NSFont* mainLabelFont; |
| 44 | 45 |
| 45 @end | 46 @end |
| OLD | NEW |