Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: chrome/browser/cocoa/search_engine_dialog_controller.h

Issue 4206002: Firefox import broken for first run on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/cocoa/search_engine_dialog_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/search_engine_dialog_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698