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