| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // The LocationBar class is a virtual interface, defining access to the | 5 // The LocationBar class is a virtual interface, defining access to the |
| 6 // window's location bar component. This class exists so that cross-platform | 6 // window's location bar component. This class exists so that cross-platform |
| 7 // components like the browser command system can talk to the platform | 7 // components like the browser command system can talk to the platform |
| 8 // specific implementations of the location bar control. It also allows the | 8 // specific implementations of the location bar control. It also allows the |
| 9 // location bar to be mocked for testing. | 9 // location bar to be mocked for testing. |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Clears the location bar, inserts an annoying little "?" turd and sets | 46 // Clears the location bar, inserts an annoying little "?" turd and sets |
| 47 // focus to it. | 47 // focus to it. |
| 48 virtual void FocusSearch() = 0; | 48 virtual void FocusSearch() = 0; |
| 49 | 49 |
| 50 // Update the state of the feed icon. | 50 // Update the state of the feed icon. |
| 51 virtual void UpdateFeedIcon() = 0; | 51 virtual void UpdateFeedIcon() = 0; |
| 52 | 52 |
| 53 // Saves the state of the location bar to the specified TabContents, so that | 53 // Saves the state of the location bar to the specified TabContents, so that |
| 54 // it can be restored later. (Done when switching tabs). | 54 // it can be restored later. (Done when switching tabs). |
| 55 virtual void SaveStateToContents(TabContents* contents) = 0; | 55 virtual void SaveStateToContents(TabContents* contents) = 0; |
| 56 |
| 57 // Reverts the location bar. The bar's permanent text will be shown. |
| 58 virtual void Revert() = 0; |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 #endif // CHROME_BROWSER_LOCATION_BAR_H_ | 61 #endif // CHROME_BROWSER_LOCATION_BAR_H_ |
| OLD | NEW |