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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_TRANSLATE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_INFOBAR_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/translate/chrome_translate_client.h" 10 #include "chrome/browser/translate/chrome_translate_client.h"
(...skipping 14 matching lines...) Expand all
25 jobject obj, 25 jobject obj,
26 int source_language_index, 26 int source_language_index,
27 int target_language_index, 27 int target_language_index,
28 bool always_translate, 28 bool always_translate,
29 bool never_translate_language, 29 bool never_translate_language,
30 bool never_translate_site); 30 bool never_translate_site);
31 31
32 private: 32 private:
33 // InfoBarAndroid: 33 // InfoBarAndroid:
34 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 34 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
35 JNIEnv* env) OVERRIDE; 35 JNIEnv* env) override;
36 virtual void ProcessButton(int action, 36 virtual void ProcessButton(int action,
37 const std::string& action_value) OVERRIDE; 37 const std::string& action_value) override;
38 virtual void PassJavaInfoBar(InfoBarAndroid* source) OVERRIDE; 38 virtual void PassJavaInfoBar(InfoBarAndroid* source) override;
39 39
40 void TransferOwnership(TranslateInfoBar* destination, 40 void TransferOwnership(TranslateInfoBar* destination,
41 translate::TranslateStep new_type); 41 translate::TranslateStep new_type);
42 void SetJavaDelegate(jobject delegate); 42 void SetJavaDelegate(jobject delegate);
43 bool ShouldDisplayNeverTranslateInfoBarOnCancel(); 43 bool ShouldDisplayNeverTranslateInfoBarOnCancel();
44 44
45 translate::TranslateInfoBarDelegate* GetDelegate(); 45 translate::TranslateInfoBarDelegate* GetDelegate();
46 46
47 base::android::ScopedJavaGlobalRef<jobject> java_translate_delegate_; 47 base::android::ScopedJavaGlobalRef<jobject> java_translate_delegate_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBar); 49 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBar);
50 }; 50 };
51 51
52 // Registers the native methods through JNI. 52 // Registers the native methods through JNI.
53 bool RegisterTranslateInfoBarDelegate(JNIEnv* env); 53 bool RegisterTranslateInfoBarDelegate(JNIEnv* env);
54 54
55 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_INFOBAR_H_ 55 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698