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

Unified Diff: chrome/browser/ui/android/infobars/confirm_infobar.h

Issue 2493013002: Replace the use of WindowAndroid with Tab in permissions code. (Closed)
Patch Set: Comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/infobars/confirm_infobar.h
diff --git a/chrome/browser/ui/android/infobars/confirm_infobar.h b/chrome/browser/ui/android/infobars/confirm_infobar.h
index 79aca068cad812edb364d7ca4895d446a644157e..4cad0e1d8d0fd952ba7553802e2613e87d9774f4 100644
--- a/chrome/browser/ui/android/infobars/confirm_infobar.h
+++ b/chrome/browser/ui/android/infobars/confirm_infobar.h
@@ -11,22 +11,25 @@
#include "chrome/browser/ui/android/infobars/infobar_android.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
+class TabAndroid;
+
class ConfirmInfoBar : public InfoBarAndroid {
public:
explicit ConfirmInfoBar(std::unique_ptr<ConfirmInfoBarDelegate> delegate);
~ConfirmInfoBar() override;
protected:
- base::string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button);
ConfirmInfoBarDelegate* GetDelegate();
- void OnLinkClicked(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj) override;
- base::android::ScopedJavaLocalRef<jobject> GetWindowAndroid();
+ TabAndroid* GetTab();
+ base::string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button);
// InfoBarAndroid overrides.
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
JNIEnv* env) override;
+ void OnLinkClicked(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) override;
+
void ProcessButton(int action) override;
private:
« no previous file with comments | « chrome/browser/permissions/permission_infobar_delegate.cc ('k') | chrome/browser/ui/android/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698