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

Side by Side Diff: chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller.h

Issue 1951153002: Remove AddSearchProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: obsolescence date Created 4 years, 7 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
(Empty)
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_EDIT_SEARCH_ENGINE_COCOA_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_EDIT_SEARCH_ENGINE_COCOA_CONTROLLER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include <memory>
11
12 #include "chrome/browser/ui/search_engines/edit_search_engine_controller.h"
13
14 class TemplateURL;
15
16 // This controller presents a dialog that allows a user to add or edit a search
17 // engine. If constructed with a nil |templateURL| then it is an add operation,
18 // otherwise it will modify the passed URL. A |delegate| is necessary to
19 // perform the actual database modifications, and should probably be an
20 // instance of KeywordEditorModelObserver.
21 @interface EditSearchEngineCocoaController :
22 NSWindowController<NSWindowDelegate> {
23 IBOutlet NSTextField* nameField_;
24 IBOutlet NSTextField* keywordField_;
25 IBOutlet NSTextField* urlField_;
26 IBOutlet NSImageView* nameImage_;
27 IBOutlet NSImageView* keywordImage_;
28 IBOutlet NSImageView* urlImage_;
29 IBOutlet NSButton* doneButton_;
30 IBOutlet NSTextField* urlDescriptionField_;
31 IBOutlet NSView* labelContainer_;
32 IBOutlet NSBox* fieldAndImageContainer_;
33
34 Profile* profile_; // weak
35 TemplateURL* templateURL_; // weak
36 std::unique_ptr<EditSearchEngineController> controller_;
37 }
38
39 - (id)initWithProfile:(Profile*)profile
40 delegate:(EditSearchEngineControllerDelegate*)delegate
41 templateURL:(TemplateURL*)url;
42
43 - (IBAction)cancel:(id)sender;
44 - (IBAction)save:(id)sender;
45
46 @end
47
48 @interface EditSearchEngineCocoaController (ExposedForTesting)
49 - (BOOL)validateFields;
50 @end
51
52 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_EDIT_SEARCH_ENGINE_COCOA_CONTROLLER_H _
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698