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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 21042013: Have SearchProvider look up the omnibox start margin directly. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebase and respond to comments. Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const GURL& alternate_nav_url) OVERRIDE; 146 const GURL& alternate_nav_url) OVERRIDE;
147 virtual void OnChanged() OVERRIDE; 147 virtual void OnChanged() OVERRIDE;
148 virtual void OnSelectionBoundsChanged() OVERRIDE; 148 virtual void OnSelectionBoundsChanged() OVERRIDE;
149 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 149 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
150 virtual void OnKillFocus() OVERRIDE; 150 virtual void OnKillFocus() OVERRIDE;
151 virtual void OnSetFocus() OVERRIDE; 151 virtual void OnSetFocus() OVERRIDE;
152 virtual gfx::Image GetFavicon() const OVERRIDE; 152 virtual gfx::Image GetFavicon() const OVERRIDE;
153 virtual string16 GetTitle() const OVERRIDE; 153 virtual string16 GetTitle() const OVERRIDE;
154 virtual InstantController* GetInstant() OVERRIDE; 154 virtual InstantController* GetInstant() OVERRIDE;
155 virtual content::WebContents* GetWebContents() const OVERRIDE; 155 virtual content::WebContents* GetWebContents() const OVERRIDE;
156 virtual gfx::Rect GetOmniboxBounds() const OVERRIDE;
157 156
158 NSImage* GetKeywordImage(const string16& keyword); 157 NSImage* GetKeywordImage(const string16& keyword);
159 158
160 AutocompleteTextField* GetAutocompleteTextField() { return field_; } 159 AutocompleteTextField* GetAutocompleteTextField() { return field_; }
161 160
162 161
163 // content::NotificationObserver: 162 // content::NotificationObserver:
164 virtual void Observe(int type, 163 virtual void Observe(int type,
165 const content::NotificationSource& source, 164 const content::NotificationSource& source,
166 const content::NotificationDetails& details) OVERRIDE; 165 const content::NotificationDetails& details) OVERRIDE;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Used to schedule a task for the first run info bubble. 258 // Used to schedule a task for the first run info bubble.
260 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 259 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
261 260
262 // Used to change the visibility of the star decoration. 261 // Used to change the visibility of the star decoration.
263 BooleanPrefMember edit_bookmarks_enabled_; 262 BooleanPrefMember edit_bookmarks_enabled_;
264 263
265 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 264 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
266 }; 265 };
267 266
268 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 267 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698