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