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

Unified Diff: chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h

Issue 2007833002: Delete FullscreenInfoBarDelegate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen-android-remove-flag
Patch Set: More cleanup suggested by Ted. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h
diff --git a/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h b/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h
deleted file mode 100644
index bf5e92ffed140ace344d769d7b41c4538df7598f..0000000000000000000000000000000000000000
--- a/chrome/browser/android/fullscreen/fullscreen_infobar_delegate.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_ANDROID_FULLSCREEN_FULLSCREEN_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_ANDROID_FULLSCREEN_FULLSCREEN_INFOBAR_DELEGATE_H_
-
-#include <string>
-
-#include "base/android/jni_android.h"
-#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
-#include "components/infobars/core/confirm_infobar_delegate.h"
-#include "url/gurl.h"
-
-class InfoBarService;
-
-// Native part of FullscreenInfoBarDelegate.java. This class is responsible
-// for adding and removing the fullscreen infobar.
-class FullscreenInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- static bool RegisterFullscreenInfoBarDelegate(JNIEnv* env);
-
- FullscreenInfoBarDelegate(JNIEnv* env, jobject obj, GURL origin);
- ~FullscreenInfoBarDelegate() override;
-
- // Called to close the infobar.
- void CloseFullscreenInfoBar(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
-
- // ConfirmInfoBarDelegate:
- infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- int GetIconId() const override;
- base::string16 GetMessageText() const override;
- base::string16 GetButtonLabel(InfoBarButton button) const override;
- bool Accept() override;
- bool Cancel() override;
-
- private:
- base::android::ScopedJavaGlobalRef<jobject> j_delegate_;
- GURL origin_;
-
- DISALLOW_COPY_AND_ASSIGN(FullscreenInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_ANDROID_FULLSCREEN_FULLSCREEN_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698