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

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

Issue 900733003: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 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/ui/android/infobars/infobar_android.h" 10 #include "chrome/browser/ui/android/infobars/infobar_android.h"
11 #include "components/infobars/core/confirm_infobar_delegate.h" 11 #include "components/infobars/core/confirm_infobar_delegate.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 explicit ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate);
16 virtual ~ConfirmInfoBar(); 16 ~ConfirmInfoBar() override;
17 17
18 protected: 18 protected:
19 base::string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button); 19 base::string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button);
20 ConfirmInfoBarDelegate* GetDelegate(); 20 ConfirmInfoBarDelegate* GetDelegate();
21 21
22 // InfoBarAndroid overrides. 22 // InfoBarAndroid overrides.
23 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 23 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
24 JNIEnv* env) override; 24 JNIEnv* env) override;
25 25
26 private: 26 private:
27 void OnLinkClicked(JNIEnv* env, jobject obj) override; 27 void OnLinkClicked(JNIEnv* env, jobject obj) override;
28 void ProcessButton(int action, const std::string& action_value) override; 28 void ProcessButton(int action, const std::string& action_value) override;
29 29
30 base::android::ScopedJavaGlobalRef<jobject> java_confirm_delegate_; 30 base::android::ScopedJavaGlobalRef<jobject> java_confirm_delegate_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); 32 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar);
33 }; 33 };
34 34
35 // Registers native methods. 35 // Registers native methods.
36 bool RegisterConfirmInfoBarDelegate(JNIEnv* env); 36 bool RegisterConfirmInfoBarDelegate(JNIEnv* env);
37 37
38 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_ 38 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_CONFIRM_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/context_menu_helper.h ('k') | chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698