| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOCATION_BAR_LOCATION_BAR_H_ | 5 #ifndef CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| 7 | 7 |
| 8 #include "ui/base/page_transition_types.h" | 8 #include "ui/base/page_transition_types.h" |
| 9 #include "ui/base/window_open_disposition.h" | 9 #include "ui/base/window_open_disposition.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Shows the popup for the given |extension| and, if |grant_active_tab| is | 68 // Shows the popup for the given |extension| and, if |grant_active_tab| is |
| 69 // true, grants the extension active tab permissions. | 69 // true, grants the extension active tab permissions. |
| 70 // Returns true if a popup was shown. | 70 // Returns true if a popup was shown. |
| 71 virtual bool ShowPageActionPopup(const extensions::Extension* extension, | 71 virtual bool ShowPageActionPopup(const extensions::Extension* extension, |
| 72 bool grant_active_tab) = 0; | 72 bool grant_active_tab) = 0; |
| 73 | 73 |
| 74 // 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. |
| 75 virtual void UpdateOpenPDFInReaderPrompt() = 0; | 75 virtual void UpdateOpenPDFInReaderPrompt() = 0; |
| 76 | 76 |
| 77 // Updates the generated credit card view. This view serves as an anchor for | |
| 78 // the generated credit card bubble, which can show on successful generation | |
| 79 // of a new credit card number. | |
| 80 virtual void UpdateGeneratedCreditCardView() = 0; | |
| 81 | |
| 82 // 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 |
| 83 // it can be restored later. (Done when switching tabs). | 78 // it can be restored later. (Done when switching tabs). |
| 84 virtual void SaveStateToContents(content::WebContents* contents) = 0; | 79 virtual void SaveStateToContents(content::WebContents* contents) = 0; |
| 85 | 80 |
| 86 // 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. |
| 87 virtual void Revert() = 0; | 82 virtual void Revert() = 0; |
| 88 | 83 |
| 89 virtual const OmniboxView* GetOmniboxView() const = 0; | 84 virtual const OmniboxView* GetOmniboxView() const = 0; |
| 90 virtual OmniboxView* GetOmniboxView() = 0; | 85 virtual OmniboxView* GetOmniboxView() = 0; |
| 91 | 86 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void TestPageActionPressed(size_t index) = 0; | 119 virtual void TestPageActionPressed(size_t index) = 0; |
| 125 | 120 |
| 126 // Returns whether or not the bookmark star decoration is visible. | 121 // Returns whether or not the bookmark star decoration is visible. |
| 127 virtual bool GetBookmarkStarVisibility() = 0; | 122 virtual bool GetBookmarkStarVisibility() = 0; |
| 128 | 123 |
| 129 protected: | 124 protected: |
| 130 virtual ~LocationBarTesting() {} | 125 virtual ~LocationBarTesting() {} |
| 131 }; | 126 }; |
| 132 | 127 |
| 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 128 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| OLD | NEW |