Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 // Clears the location bar, inserts an annoying little "?" turd and sets | 48 // Clears the location bar, inserts an annoying little "?" turd and sets |
| 49 // focus to it. | 49 // focus to it. |
| 50 virtual void FocusSearch() = 0; | 50 virtual void FocusSearch() = 0; |
| 51 | 51 |
| 52 // Updates the state of the images showing the content settings status. | 52 // Updates the state of the images showing the content settings status. |
| 53 virtual void UpdateContentSettingsIcons() = 0; | 53 virtual void UpdateContentSettingsIcons() = 0; |
| 54 | 54 |
| 55 // Updates the password icon and pops up a bubble from the icon if needed. | 55 // Updates the password icon and pops up a bubble from the icon if needed. |
| 56 virtual void UpdateManagePasswordsIconAndBubble() = 0; | 56 virtual void UpdateManagePasswordsIconAndBubble() = 0; |
| 57 | 57 |
| 58 // Updates the state of the page actions. | 58 // Updates the state of the page actions. |
|
Peter Kasting
2014/12/23 01:00:42
So how are "update" and "refresh" different? We n
erikchen
2014/12/23 01:14:44
I deleted Refresh/InvalidatePageActions, and updat
| |
| 59 virtual void UpdatePageActions() = 0; | 59 virtual void UpdatePageActions() = 0; |
| 60 | 60 |
| 61 // Updates the visibility of the bookmark star. | 61 // Updates the visibility of the bookmark star. |
| 62 virtual void UpdateBookmarkStarVisibility() = 0; | 62 virtual void UpdateBookmarkStarVisibility() = 0; |
| 63 | 63 |
| 64 // Called when the page-action data needs to be refreshed, e.g. when an | 64 // Called when the page-action data needs to be refreshed, e.g. when an |
| 65 // extension is unloaded or crashes. | 65 // extension is unloaded or crashes. |
| 66 virtual void InvalidatePageActions() = 0; | 66 virtual void RefreshPageActions() = 0; |
| 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 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 virtual void TestPageActionPressed(size_t index) = 0; | 124 virtual void TestPageActionPressed(size_t index) = 0; |
| 125 | 125 |
| 126 // Returns whether or not the bookmark star decoration is visible. | 126 // Returns whether or not the bookmark star decoration is visible. |
| 127 virtual bool GetBookmarkStarVisibility() = 0; | 127 virtual bool GetBookmarkStarVisibility() = 0; |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 virtual ~LocationBarTesting() {} | 130 virtual ~LocationBarTesting() {} |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| OLD | NEW |