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

Side by Side Diff: trunk/src/chrome/browser/ui/android/infobars/confirm_infobar.h

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 10 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
11 #include "chrome/browser/ui/android/infobars/infobar_android.h" 11 #include "chrome/browser/ui/android/infobars/infobar_android.h"
12 12
13 class ConfirmInfoBar : public InfoBarAndroid { 13 class ConfirmInfoBar : public InfoBarAndroid {
14 public: 14 public:
15 explicit ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate); 15 ConfirmInfoBar(InfoBarService* owner, InfoBarDelegate* delegate);
16 virtual ~ConfirmInfoBar(); 16 virtual ~ConfirmInfoBar();
17 17
18 private: 18 private:
19 // InfoBarAndroid: 19 // InfoBarAndroid:
20 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 20 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
21 JNIEnv* env) OVERRIDE; 21 JNIEnv* env) OVERRIDE;
22 virtual void OnLinkClicked(JNIEnv* env, jobject obj) OVERRIDE; 22 virtual void OnLinkClicked(JNIEnv* env, jobject obj) OVERRIDE;
23 virtual void ProcessButton(int action, 23 virtual void ProcessButton(int action,
24 const std::string& action_value) OVERRIDE; 24 const std::string& action_value) OVERRIDE;
25 25
26 ConfirmInfoBarDelegate* GetDelegate(); 26 ConfirmInfoBarDelegate* GetDelegate();
27 string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button); 27 string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button);
28 28
29 base::android::ScopedJavaGlobalRef<jobject> java_confirm_delegate_; 29 base::android::ScopedJavaGlobalRef<jobject> java_confirm_delegate_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); 31 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar);
32 }; 32 };
33 33
34 // Registers native methods. 34 // Registers native methods.
35 bool RegisterConfirmInfoBarDelegate(JNIEnv* env); 35 bool RegisterConfirmInfoBarDelegate(JNIEnv* env);
36 36
37 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_ 37 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698