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

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

Issue 220040: [Mac] Enable "Edit Search Engines" in Omnibox context menu. (Closed)
Patch Set: nop to make sure I'm logging in. Created 11 years, 2 months 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/scoped_nsobject.h" 8 #include "base/scoped_nsobject.h"
9 #include "chrome/common/pref_member.h" 9 #include "chrome/common/pref_member.h"
10 10
11 @class CustomHomePagesModel; 11 @class CustomHomePagesModel;
12 @class KeywordEditorCocoaController;
13 class PrefObserverBridge; 12 class PrefObserverBridge;
14 class PrefService; 13 class PrefService;
15 class Profile; 14 class Profile;
16 @class SearchEngineListModel; 15 @class SearchEngineListModel;
17 16
18 // A window controller that handles the preferences window. The bulk of the 17 // A window controller that handles the preferences window. The bulk of the
19 // work is handled via Cocoa Bindings and getter/setter methods that wrap 18 // work is handled via Cocoa Bindings and getter/setter methods that wrap
20 // cross-platform PrefMember objects. When prefs change in the back-end 19 // cross-platform PrefMember objects. When prefs change in the back-end
21 // (that is, outside of this UI), our observer recieves a notification and can 20 // (that is, outside of this UI), our observer recieves a notification and can
22 // tickle the KVO to update the UI so we are always in sync. The bindings are 21 // tickle the KVO to update the UI so we are always in sync. The bindings are
(...skipping 20 matching lines...) Expand all
43 IBOutlet NSArrayController* customPagesArrayController_; 42 IBOutlet NSArrayController* customPagesArrayController_;
44 43
45 // Basics panel 44 // Basics panel
46 IntegerPrefMember restoreOnStartup_; 45 IntegerPrefMember restoreOnStartup_;
47 scoped_nsobject<CustomHomePagesModel> customPagesSource_; 46 scoped_nsobject<CustomHomePagesModel> customPagesSource_;
48 BooleanPrefMember newTabPageIsHomePage_; 47 BooleanPrefMember newTabPageIsHomePage_;
49 StringPrefMember homepage_; 48 StringPrefMember homepage_;
50 BooleanPrefMember showHomeButton_; 49 BooleanPrefMember showHomeButton_;
51 BooleanPrefMember showPageOptionButtons_; 50 BooleanPrefMember showPageOptionButtons_;
52 scoped_nsobject<SearchEngineListModel> searchEngineModel_; 51 scoped_nsobject<SearchEngineListModel> searchEngineModel_;
53 KeywordEditorCocoaController* keywordEditorController_; // weak
54 // Used when creating a new home page url to make the new cell editable. 52 // Used when creating a new home page url to make the new cell editable.
55 BOOL pendingSelectForEdit_; 53 BOOL pendingSelectForEdit_;
56 54
57 // User Data panel 55 // User Data panel
58 BooleanPrefMember askSavePasswords_; 56 BooleanPrefMember askSavePasswords_;
59 BooleanPrefMember formAutofill_; 57 BooleanPrefMember formAutofill_;
60 58
61 // Under the hood panel 59 // Under the hood panel
62 IBOutlet NSView* advancedView_; 60 IBOutlet NSView* advancedView_;
63 IBOutlet NSScrollView* advancedScroller_; 61 IBOutlet NSScrollView* advancedScroller_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // When a toolbar button is clicked 98 // When a toolbar button is clicked
101 - (IBAction)toolbarButtonSelected:(id)sender; 99 - (IBAction)toolbarButtonSelected:(id)sender;
102 100
103 // Usable from cocoa bindings to hook up the custom home pages table. 101 // Usable from cocoa bindings to hook up the custom home pages table.
104 @property(readonly) CustomHomePagesModel* customPagesSource; 102 @property(readonly) CustomHomePagesModel* customPagesSource;
105 103
106 // NSNotification sent when the prefs window is closed. 104 // NSNotification sent when the prefs window is closed.
107 extern NSString* const kUserDoneEditingPrefsNotification; 105 extern NSString* const kUserDoneEditingPrefsNotification;
108 106
109 @end 107 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698