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

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

Issue 2769014: Mac/clang: Possibly contentious changes. (Closed)
Patch Set: comments2 Created 10 years, 6 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 "app/table_model_observer.h" 7 #include "app/table_model_observer.h"
8 #import "base/cocoa_protocols_mac.h" 8 #import "base/cocoa_protocols_mac.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/cocoa/table_row_nsimage_cache.h" 10 #include "chrome/browser/cocoa/table_row_nsimage_cache.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 IBOutlet NSButton* makeDefaultButton_; 74 IBOutlet NSButton* makeDefaultButton_;
75 75
76 scoped_nsobject<NSTextFieldCell> groupCell_; 76 scoped_nsobject<NSTextFieldCell> groupCell_;
77 77
78 Profile* profile_; // weak 78 Profile* profile_; // weak
79 scoped_ptr<KeywordEditorController> controller_; 79 scoped_ptr<KeywordEditorController> controller_;
80 scoped_ptr<KeywordEditorModelObserver> observer_; 80 scoped_ptr<KeywordEditorModelObserver> observer_;
81 81
82 scoped_nsobject<WindowSizeAutosaver> sizeSaver_; 82 scoped_nsobject<WindowSizeAutosaver> sizeSaver_;
83 } 83 }
84 @property (readonly) KeywordEditorController* controller; 84 @property (nonatomic, readonly) KeywordEditorController* controller;
85 85
86 // Show the keyword editor associated with the given profile (or the 86 // Show the keyword editor associated with the given profile (or the
87 // original profile if this is an incognito profile). If no keyword 87 // original profile if this is an incognito profile). If no keyword
88 // editor exists for this profile, create one and show it. Any 88 // editor exists for this profile, create one and show it. Any
89 // resulting editor releases itself when closed. 89 // resulting editor releases itself when closed.
90 + (void)showKeywordEditor:(Profile*)profile; 90 + (void)showKeywordEditor:(Profile*)profile;
91 91
92 - (KeywordEditorController*)controller; 92 - (KeywordEditorController*)controller;
93 93
94 // Message forwarded by KeywordEditorModelObserver. 94 // Message forwarded by KeywordEditorModelObserver.
(...skipping 12 matching lines...) Expand all
107 107
108 // Returns a reference to the shared instance for the given profile, 108 // Returns a reference to the shared instance for the given profile,
109 // or nil if there is none. 109 // or nil if there is none.
110 + (KeywordEditorCocoaController*)sharedInstanceForProfile:(Profile*)profile; 110 + (KeywordEditorCocoaController*)sharedInstanceForProfile:(Profile*)profile;
111 111
112 // Converts a row index in our table view (which has group header rows) into 112 // Converts a row index in our table view (which has group header rows) into
113 // one in the |controller_|'s model, which does not have them. 113 // one in the |controller_|'s model, which does not have them.
114 - (int)indexInModelForRow:(NSUInteger)row; 114 - (int)indexInModelForRow:(NSUInteger)row;
115 115
116 @end 116 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698