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

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

Issue 402066: Moved a whole pile of unittests over to CocoaTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
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/browser/options_window.h" 9 #include "chrome/browser/options_window.h"
10 #include "chrome/common/pref_member.h" 10 #include "chrome/common/pref_member.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Under the hood 128 // Under the hood
129 - (IBAction)browseDownloadLocation:(id)sender; 129 - (IBAction)browseDownloadLocation:(id)sender;
130 - (IBAction)privacyLearnMore:(id)sender; 130 - (IBAction)privacyLearnMore:(id)sender;
131 131
132 // When a toolbar button is clicked 132 // When a toolbar button is clicked
133 - (IBAction)toolbarButtonSelected:(id)sender; 133 - (IBAction)toolbarButtonSelected:(id)sender;
134 134
135 // Usable from cocoa bindings to hook up the custom home pages table. 135 // Usable from cocoa bindings to hook up the custom home pages table.
136 @property(readonly) CustomHomePagesModel* customPagesSource; 136 @property(readonly) CustomHomePagesModel* customPagesSource;
137 137
138 // NSNotification sent when the prefs window is closed.
139 extern NSString* const kUserDoneEditingPrefsNotification;
140
141 @end 138 @end
142 139
143 @interface PreferencesWindowController(Testing) 140 @interface PreferencesWindowController(Testing)
144 141
145 - (IntegerPrefMember*)lastSelectedPage; 142 - (IntegerPrefMember*)lastSelectedPage;
146 - (NSToolbar*)toolbar; 143 - (NSToolbar*)toolbar;
147 - (NSView*)basicsView; 144 - (NSView*)basicsView;
148 - (NSView*)personalStuffView; 145 - (NSView*)personalStuffView;
149 - (NSView*)underTheHoodView; 146 - (NSView*)underTheHoodView;
150 147
151 // Converts the given OptionsPage value (which may be OPTIONS_PAGE_DEFAULT) 148 // Converts the given OptionsPage value (which may be OPTIONS_PAGE_DEFAULT)
152 // into a concrete OptionsPage value. 149 // into a concrete OptionsPage value.
153 - (OptionsPage)normalizePage:(OptionsPage)page; 150 - (OptionsPage)normalizePage:(OptionsPage)page;
154 151
155 // Returns the toolbar item corresponding to the given page. Should be 152 // Returns the toolbar item corresponding to the given page. Should be
156 // called only after awakeFromNib is. 153 // called only after awakeFromNib is.
157 - (NSToolbarItem*)getToolbarItemForPage:(OptionsPage)page; 154 - (NSToolbarItem*)getToolbarItemForPage:(OptionsPage)page;
158 155
159 // Returns the (normalized) page corresponding to the given toolbar item. 156 // Returns the (normalized) page corresponding to the given toolbar item.
160 // Should be called only after awakeFromNib is. 157 // Should be called only after awakeFromNib is.
161 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem; 158 - (OptionsPage)getPageForToolbarItem:(NSToolbarItem*)toolbarItem;
162 159
163 // Returns the view corresponding to the given page. Should be called 160 // Returns the view corresponding to the given page. Should be called
164 // only after awakeFromNib is. 161 // only after awakeFromNib is.
165 - (NSView*)getPrefsViewForPage:(OptionsPage)page; 162 - (NSView*)getPrefsViewForPage:(OptionsPage)page;
166 163
167 @end 164 @end
168 165
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/page_info_window_controller_unittest.mm ('k') | chrome/browser/cocoa/preferences_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698