OLD | NEW |
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 // 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Updates the state of the images showing the content settings status. | 59 // Updates the state of the images showing the content settings status. |
60 virtual void UpdateContentSettingsIcons() = 0; | 60 virtual void UpdateContentSettingsIcons() = 0; |
61 | 61 |
62 // Updates the state of the page actions. | 62 // Updates the state of the page actions. |
63 virtual void UpdatePageActions() = 0; | 63 virtual void UpdatePageActions() = 0; |
64 | 64 |
65 // Called when the page-action data needs to be refreshed, e.g. when an | 65 // Called when the page-action data needs to be refreshed, e.g. when an |
66 // extension is unloaded or crashes. | 66 // extension is unloaded or crashes. |
67 virtual void InvalidatePageActions() = 0; | 67 virtual void InvalidatePageActions() = 0; |
68 | 68 |
| 69 #if defined(ENABLE_WEB_INTENTS) |
69 // Updates the state of the web intents use-another-service button. | 70 // Updates the state of the web intents use-another-service button. |
70 virtual void UpdateWebIntentsButton() = 0; | 71 virtual void UpdateWebIntentsButton() = 0; |
| 72 #endif |
71 | 73 |
72 // Updates the state of the button to open a PDF in Adobe Reader. | 74 // Updates the state of the button to open a PDF in Adobe Reader. |
73 virtual void UpdateOpenPDFInReaderPrompt() = 0; | 75 virtual void UpdateOpenPDFInReaderPrompt() = 0; |
74 | 76 |
75 // Saves the state of the location bar to the specified WebContents, so that | 77 // Saves the state of the location bar to the specified WebContents, so that |
76 // it can be restored later. (Done when switching tabs). | 78 // it can be restored later. (Done when switching tabs). |
77 virtual void SaveStateToContents(content::WebContents* contents) = 0; | 79 virtual void SaveStateToContents(content::WebContents* contents) = 0; |
78 | 80 |
79 // Reverts the location bar. The bar's permanent text will be shown. | 81 // Reverts the location bar. The bar's permanent text will be shown. |
80 virtual void Revert() = 0; | 82 virtual void Revert() = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual void TestActionBoxMenuItemSelected(int command_id) = 0; | 114 virtual void TestActionBoxMenuItemSelected(int command_id) = 0; |
113 | 115 |
114 // Returns whether or not the bookmark star decoration is visible. | 116 // Returns whether or not the bookmark star decoration is visible. |
115 virtual bool GetBookmarkStarVisibility() = 0; | 117 virtual bool GetBookmarkStarVisibility() = 0; |
116 | 118 |
117 protected: | 119 protected: |
118 virtual ~LocationBarTesting() {} | 120 virtual ~LocationBarTesting() {} |
119 }; | 121 }; |
120 | 122 |
121 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ | 123 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ |
OLD | NEW |