OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // CardUnmaskPromptView | 47 // CardUnmaskPromptView |
48 void Show() override; | 48 void Show() override; |
49 void ControllerGone() override; | 49 void ControllerGone() override; |
50 void DisableAndWaitForVerification() override; | 50 void DisableAndWaitForVerification() override; |
51 void GotVerificationResult(const base::string16& error_message, | 51 void GotVerificationResult(const base::string16& error_message, |
52 bool allow_retry) override; | 52 bool allow_retry) override; |
53 | 53 |
54 // views::DialogDelegateView | 54 // views::DialogDelegateView |
55 View* GetContentsView() override; | 55 View* GetContentsView() override; |
56 views::View* CreateFootnoteView() override; | 56 scoped_ptr<views::View> CreateFootnoteView() override; |
57 | 57 |
58 // views::View | 58 // views::View |
59 gfx::Size GetPreferredSize() const override; | 59 gfx::Size GetPreferredSize() const override; |
60 void Layout() override; | 60 void Layout() override; |
61 int GetHeightForWidth(int width) const override; | 61 int GetHeightForWidth(int width) const override; |
62 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 62 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
63 ui::ModalType GetModalType() const override; | 63 ui::ModalType GetModalType() const override; |
64 base::string16 GetWindowTitle() const override; | 64 base::string16 GetWindowTitle() const override; |
65 void DeleteDelegate() override; | 65 void DeleteDelegate() override; |
66 int GetDialogButtons() const override; | |
67 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 66 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
68 bool ShouldDefaultButtonBeBlue() const override; | 67 bool ShouldDefaultButtonBeBlue() const override; |
69 bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 68 bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
70 views::View* GetInitiallyFocusedView() override; | 69 views::View* GetInitiallyFocusedView() override; |
71 bool Cancel() override; | 70 bool Cancel() override; |
72 bool Accept() override; | 71 bool Accept() override; |
73 | 72 |
74 // views::TextfieldController | 73 // views::TextfieldController |
75 void ContentsChanged(views::Textfield* sender, | 74 void ContentsChanged(views::Textfield* sender, |
76 const base::string16& new_contents) override; | 75 const base::string16& new_contents) override; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 gfx::SlideAnimation overlay_animation_; | 159 gfx::SlideAnimation overlay_animation_; |
161 | 160 |
162 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; | 161 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; |
163 | 162 |
164 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); | 163 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); |
165 }; | 164 }; |
166 | 165 |
167 } // namespace autofill | 166 } // namespace autofill |
168 | 167 |
169 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 168 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
OLD | NEW |