Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/browser/ui/location_bar/location_bar.h

Issue 2672463003: Remove dead code since PDFWebContentsHelper::ShowOpenInReaderPrompt isn't called anymore. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Updates the visibility of the location bar. Animates the transition if 69 // Updates the visibility of the location bar. Animates the transition if
70 // |animate| is true. 70 // |animate| is true.
71 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0; 71 virtual void UpdateLocationBarVisibility(bool visible, bool animate) = 0;
72 72
73 // Shows the popup for the given |extension| and, if |grant_active_tab| is 73 // Shows the popup for the given |extension| and, if |grant_active_tab| is
74 // true, grants the extension active tab permissions. 74 // true, grants the extension active tab permissions.
75 // Returns true if a popup was shown. 75 // Returns true if a popup was shown.
76 virtual bool ShowPageActionPopup(const extensions::Extension* extension, 76 virtual bool ShowPageActionPopup(const extensions::Extension* extension,
77 bool grant_active_tab) = 0; 77 bool grant_active_tab) = 0;
78 78
79 // Updates the state of the button to open a PDF in Adobe Reader.
80 virtual void UpdateOpenPDFInReaderPrompt() = 0;
81
82 // Saves the state of the location bar to the specified WebContents, so that 79 // Saves the state of the location bar to the specified WebContents, so that
83 // it can be restored later. (Done when switching tabs). 80 // it can be restored later. (Done when switching tabs).
84 virtual void SaveStateToContents(content::WebContents* contents) = 0; 81 virtual void SaveStateToContents(content::WebContents* contents) = 0;
85 82
86 // Reverts the location bar. The bar's permanent text will be shown. 83 // Reverts the location bar. The bar's permanent text will be shown.
87 virtual void Revert() = 0; 84 virtual void Revert() = 0;
88 85
89 virtual const OmniboxView* GetOmniboxView() const = 0; 86 virtual const OmniboxView* GetOmniboxView() const = 0;
90 virtual OmniboxView* GetOmniboxView() = 0; 87 virtual OmniboxView* GetOmniboxView() = 0;
91 88
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void TestPageActionPressed(size_t index) = 0; 127 virtual void TestPageActionPressed(size_t index) = 0;
131 128
132 // Returns whether or not the bookmark star decoration is visible. 129 // Returns whether or not the bookmark star decoration is visible.
133 virtual bool GetBookmarkStarVisibility() = 0; 130 virtual bool GetBookmarkStarVisibility() = 0;
134 131
135 protected: 132 protected:
136 virtual ~LocationBarTesting() {} 133 virtual ~LocationBarTesting() {}
137 }; 134 };
138 135
139 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ 136 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698