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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // allows existing animations to continue if the size doesn't 128 // allows existing animations to continue if the size doesn't
129 // change. 129 // change.
130 void PositionPopup(const CGFloat matrixHeight); 130 void PositionPopup(const CGFloat matrixHeight);
131 131
132 // Returns the NSImage that should be used as an icon for the given match. 132 // Returns the NSImage that should be used as an icon for the given match.
133 NSImage* ImageForMatch(const AutocompleteMatch& match); 133 NSImage* ImageForMatch(const AutocompleteMatch& match);
134 134
135 // Returns whether or not to show the instant opt-in prompt. 135 // Returns whether or not to show the instant opt-in prompt.
136 bool ShouldShowInstantOptIn(); 136 bool ShouldShowInstantOptIn();
137 137
138 OmniboxViewMac* omnibox_view_;
138 scoped_ptr<AutocompletePopupModel> model_; 139 scoped_ptr<AutocompletePopupModel> model_;
139 OmniboxViewMac* omnibox_view_; 140 Profile* profile_;
140 NSTextField* field_; // owned by tab controller 141 NSTextField* field_; // owned by tab controller
141 142
142 // Child window containing a matrix which implements the popup. 143 // Child window containing a matrix which implements the popup.
143 scoped_nsobject<NSWindow> popup_; 144 scoped_nsobject<NSWindow> popup_;
144 scoped_nsobject<InstantOptInController> opt_in_controller_; 145 scoped_nsobject<InstantOptInController> opt_in_controller_;
145 NSRect targetPopupFrame_; 146 NSRect targetPopupFrame_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac); 148 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac);
148 }; 149 };
149 150
150 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ 151 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_model.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698