| OLD | NEW |
| 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_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 protected: | 31 protected: |
| 32 virtual ~PlatformVerificationDialog(); | 32 virtual ~PlatformVerificationDialog(); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 PlatformVerificationDialog( | 35 PlatformVerificationDialog( |
| 36 content::WebContents* web_contents, | 36 content::WebContents* web_contents, |
| 37 const base::string16& domain, | 37 const base::string16& domain, |
| 38 const PlatformVerificationFlow::Delegate::ConsentCallback& callback); | 38 const PlatformVerificationFlow::Delegate::ConsentCallback& callback); |
| 39 | 39 |
| 40 // Overridden from views::DialogDelegate: | 40 // Overridden from views::DialogDelegate: |
| 41 virtual bool Cancel() OVERRIDE; | 41 virtual bool Cancel() override; |
| 42 virtual bool Accept() OVERRIDE; | 42 virtual bool Accept() override; |
| 43 virtual bool Close() OVERRIDE; | 43 virtual bool Close() override; |
| 44 virtual base::string16 GetDialogButtonLabel( | 44 virtual base::string16 GetDialogButtonLabel( |
| 45 ui::DialogButton button) const OVERRIDE; | 45 ui::DialogButton button) const override; |
| 46 | 46 |
| 47 // Overridden from views::WidgetDelegate: | 47 // Overridden from views::WidgetDelegate: |
| 48 virtual ui::ModalType GetModalType() const OVERRIDE; | 48 virtual ui::ModalType GetModalType() const override; |
| 49 | 49 |
| 50 // Overridden from views::View: | 50 // Overridden from views::View: |
| 51 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 51 virtual gfx::Size GetPreferredSize() const override; |
| 52 | 52 |
| 53 // Overridden from views::StyledLabelListener: | 53 // Overridden from views::StyledLabelListener: |
| 54 virtual void StyledLabelLinkClicked(const gfx::Range& range, | 54 virtual void StyledLabelLinkClicked(const gfx::Range& range, |
| 55 int event_flags) OVERRIDE; | 55 int event_flags) override; |
| 56 | 56 |
| 57 content::WebContents* web_contents_; | 57 content::WebContents* web_contents_; |
| 58 base::string16 domain_; | 58 base::string16 domain_; |
| 59 PlatformVerificationFlow::Delegate::ConsentCallback callback_; | 59 PlatformVerificationFlow::Delegate::ConsentCallback callback_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationDialog); | 61 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationDialog); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace attestation | 64 } // namespace attestation |
| 65 } // namespace chromeos | 65 } // namespace chromeos |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_DIALOG_H_ |
| OLD | NEW |