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

Side by Side Diff: chrome/browser/ui/android/infobars/instant_apps_infobar.h

Issue 2267463002: Implement instant apps infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add _ANDROID to constant name. Created 4 years, 3 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h"
10 #include "chrome/browser/android/instantapps/instant_apps_infobar_delegate.h"
11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
12
13 class InstantAppsInfoBar : public ConfirmInfoBar {
Peter Kasting 2016/08/23 07:59:22 Subclassing ConfirmInfoBar seems wrong. Seems lik
Maria 2016/08/23 21:30:28 ConfirmInfoBar is a subclass of InfoBarAndroid tha
Peter Kasting 2016/08/23 22:10:57 Argh. I wish that were named ConfirmInfoBarAndroi
14 public:
15 InstantAppsInfoBar(
16 std::unique_ptr<InstantAppsInfoBarDelegate> delegate);
17
18 ~InstantAppsInfoBar() override;
19
20 private:
21 // ConfimInfoBar:
22 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
23 JNIEnv* env) override;
24
25 base::android::ScopedJavaGlobalRef<jobject> java_infobar_;
26
27 DISALLOW_COPY_AND_ASSIGN(InstantAppsInfoBar);
28 };
29
30 // Register native methods.
31 bool RegisterInstantAppInfoBar(JNIEnv* env);
32
33 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698