| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELEGAT
E_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELEGAT
E_ANDROID_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELEGAT
E_ANDROID_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELEGAT
E_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "components/infobars/core/infobar_delegate.h" | 10 #include "components/infobars/core/infobar_delegate.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Returns the translated label of the button. | 32 // Returns the translated label of the button. |
| 33 const base::string16& button_label() const { return button_label_; } | 33 const base::string16& button_label() const { return button_label_; } |
| 34 | 34 |
| 35 // Called when the link in the message is clicked. | 35 // Called when the link in the message is clicked. |
| 36 void OnInlineLinkClicked() const; | 36 void OnInlineLinkClicked() const; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 GeneratedPasswordSavedInfoBarDelegateAndroid(); | 39 GeneratedPasswordSavedInfoBarDelegateAndroid(); |
| 40 | 40 |
| 41 // InfoBarDelegate implementation: | 41 // InfoBarDelegate implementation: |
| 42 virtual int GetIconID() const override; | 42 int GetIconID() const override; |
| 43 virtual Type GetInfoBarType() const override; | 43 Type GetInfoBarType() const override; |
| 44 | 44 |
| 45 // The translated text of the message to display. | 45 // The translated text of the message to display. |
| 46 base::string16 message_text_; | 46 base::string16 message_text_; |
| 47 | 47 |
| 48 // The range of the message that should be a link. | 48 // The range of the message that should be a link. |
| 49 gfx::Range inline_link_range_; | 49 gfx::Range inline_link_range_; |
| 50 | 50 |
| 51 // The translated label of the button. | 51 // The translated label of the button. |
| 52 base::string16 button_label_; | 52 base::string16 button_label_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(GeneratedPasswordSavedInfoBarDelegateAndroid); | 54 DISALLOW_COPY_AND_ASSIGN(GeneratedPasswordSavedInfoBarDelegateAndroid); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELE
GATE_ANDROID_H_ | 57 #endif // CHROME_BROWSER_PASSWORD_MANAGER_GENERATED_PASSWORD_SAVED_INFOBAR_DELE
GATE_ANDROID_H_ |
| OLD | NEW |