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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Get the blocked-popup content setting's frame in window | 125 // Get the blocked-popup content setting's frame in window |
126 // coordinates. Used by the blocked-popup animation. Returns | 126 // coordinates. Used by the blocked-popup animation. Returns |
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 string16& typed_text); | 135 virtual bool OnCommitSuggestedText(bool skip_inline_autocomplete); |
136 virtual bool AcceptCurrentInstantPreview(); | 136 virtual bool AcceptCurrentInstantPreview(); |
137 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); | 137 virtual void OnPopupBoundsChanged(const gfx::Rect& bounds); |
138 virtual void OnAutocompleteAccept(const GURL& url, | 138 virtual void OnAutocompleteAccept(const GURL& url, |
139 WindowOpenDisposition disposition, | 139 WindowOpenDisposition disposition, |
140 PageTransition::Type transition, | 140 PageTransition::Type transition, |
141 const GURL& alternate_nav_url); | 141 const GURL& alternate_nav_url); |
142 virtual void OnChanged(); | 142 virtual void OnChanged(); |
143 virtual void OnSelectionBoundsChanged(); | 143 virtual void OnSelectionBoundsChanged(); |
144 virtual void OnInputInProgress(bool in_progress); | 144 virtual void OnInputInProgress(bool in_progress); |
145 virtual void OnKillFocus(); | 145 virtual void OnKillFocus(); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Used to register for notifications received by NotificationObserver. | 228 // Used to register for notifications received by NotificationObserver. |
229 NotificationRegistrar registrar_; | 229 NotificationRegistrar registrar_; |
230 | 230 |
231 // Used to schedule a task for the first run info bubble. | 231 // Used to schedule a task for the first run info bubble. |
232 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; | 232 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
233 | 233 |
234 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 234 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
235 }; | 235 }; |
236 | 236 |
237 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 237 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |