OLD | NEW |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // |NSZeroRect| if the relevant content setting decoration is not | 127 // |NSZeroRect| if the relevant content setting decoration is not |
128 // visible. | 128 // visible. |
129 NSRect GetBlockedPopupRect() const; | 129 NSRect GetBlockedPopupRect() const; |
130 | 130 |
131 // AutocompleteEditController implementation. | 131 // AutocompleteEditController implementation. |
132 virtual void OnAutocompleteWillClosePopup(); | 132 virtual void OnAutocompleteWillClosePopup(); |
133 virtual void OnAutocompleteLosingFocus(gfx::NativeView unused); | 133 virtual void OnAutocompleteLosingFocus(gfx::NativeView unused); |
134 virtual void OnAutocompleteWillAccept(); | 134 virtual void OnAutocompleteWillAccept(); |
135 virtual bool OnCommitSuggestedText(const std::wstring& typed_text); | 135 virtual bool OnCommitSuggestedText(const std::wstring& typed_text); |
136 virtual bool AcceptCurrentInstantPreview(); | 136 virtual bool AcceptCurrentInstantPreview(); |
137 virtual void OnSetSuggestedSearchText(const string16& suggested_text); | |
138 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); | 137 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); |
139 virtual void OnAutocompleteAccept(const GURL& url, | 138 virtual void OnAutocompleteAccept(const GURL& url, |
140 WindowOpenDisposition disposition, | 139 WindowOpenDisposition disposition, |
141 PageTransition::Type transition, | 140 PageTransition::Type transition, |
142 const GURL& alternate_nav_url); | 141 const GURL& alternate_nav_url); |
143 virtual void OnChanged(); | 142 virtual void OnChanged(); |
144 virtual void OnSelectionBoundsChanged(); | 143 virtual void OnSelectionBoundsChanged(); |
145 virtual void OnInputInProgress(bool in_progress); | 144 virtual void OnInputInProgress(bool in_progress); |
146 virtual void OnKillFocus(); | 145 virtual void OnKillFocus(); |
147 virtual void OnSetFocus(); | 146 virtual void OnSetFocus(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Used to register for notifications received by NotificationObserver. | 228 // Used to register for notifications received by NotificationObserver. |
230 NotificationRegistrar registrar_; | 229 NotificationRegistrar registrar_; |
231 | 230 |
232 // Used to schedule a task for the first run info bubble. | 231 // Used to schedule a task for the first run info bubble. |
233 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; | 232 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
234 | 233 |
235 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 234 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
236 }; | 235 }; |
237 | 236 |
238 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 237 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |