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

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

Issue 6252003: Accept keyword by pressing space. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 WindowOpenDisposition disposition, 140 WindowOpenDisposition disposition,
141 PageTransition::Type transition, 141 PageTransition::Type transition,
142 const GURL& alternate_nav_url); 142 const GURL& alternate_nav_url);
143 virtual void OnChanged(); 143 virtual void OnChanged();
144 virtual void OnSelectionBoundsChanged(); 144 virtual void OnSelectionBoundsChanged();
145 virtual void OnInputInProgress(bool in_progress); 145 virtual void OnInputInProgress(bool in_progress);
146 virtual void OnKillFocus(); 146 virtual void OnKillFocus();
147 virtual void OnSetFocus(); 147 virtual void OnSetFocus();
148 virtual SkBitmap GetFavIcon() const; 148 virtual SkBitmap GetFavIcon() const;
149 virtual std::wstring GetTitle() const; 149 virtual std::wstring GetTitle() const;
150 virtual bool IsKeywordHintVisible() const;
150 151
151 NSImage* GetKeywordImage(const std::wstring& keyword); 152 NSImage* GetKeywordImage(const std::wstring& keyword);
152 153
153 AutocompleteTextField* GetAutocompleteTextField() { return field_; } 154 AutocompleteTextField* GetAutocompleteTextField() { return field_; }
154 155
155 156
156 // Overridden from NotificationObserver. 157 // Overridden from NotificationObserver.
157 virtual void Observe(NotificationType type, 158 virtual void Observe(NotificationType type,
158 const NotificationSource& source, 159 const NotificationSource& source,
159 const NotificationDetails& details); 160 const NotificationDetails& details);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Used to register for notifications received by NotificationObserver. 230 // Used to register for notifications received by NotificationObserver.
230 NotificationRegistrar registrar_; 231 NotificationRegistrar registrar_;
231 232
232 // Used to schedule a task for the first run info bubble. 233 // Used to schedule a task for the first run info bubble.
233 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; 234 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 236 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
236 }; 237 };
237 238
238 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ 239 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698