OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ |
7 | 7 |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void HideSignIn() OVERRIDE; | 58 virtual void HideSignIn() OVERRIDE; |
59 virtual void ModelChanged() OVERRIDE; | 59 virtual void ModelChanged() OVERRIDE; |
60 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE; | 60 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE; |
61 virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE; | 61 virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE; |
62 | 62 |
63 // TestableAutofillDialogView implementation: | 63 // TestableAutofillDialogView implementation: |
64 // TODO(groby): Create a separate class to implement the testable interface: | 64 // TODO(groby): Create a separate class to implement the testable interface: |
65 // http://crbug.com/256864 | 65 // http://crbug.com/256864 |
66 virtual void SubmitForTesting() OVERRIDE; | 66 virtual void SubmitForTesting() OVERRIDE; |
67 virtual void CancelForTesting() OVERRIDE; | 67 virtual void CancelForTesting() OVERRIDE; |
68 virtual base::string16 GetTextContentsOfInput( | 68 virtual base::string16 GetTextContentsOfInput(ServerFieldType type) OVERRIDE; |
69 const DetailInput& input) OVERRIDE; | 69 virtual void SetTextContentsOfInput(ServerFieldType type, |
70 virtual void SetTextContentsOfInput(const DetailInput& input, | |
71 const base::string16& contents) OVERRIDE; | 70 const base::string16& contents) OVERRIDE; |
72 virtual void SetTextContentsOfSuggestionInput( | 71 virtual void SetTextContentsOfSuggestionInput( |
73 DialogSection section, | 72 DialogSection section, |
74 const base::string16& text) OVERRIDE; | 73 const base::string16& text) OVERRIDE; |
75 virtual void ActivateInput(const DetailInput& input) OVERRIDE; | 74 virtual void ActivateInput(ServerFieldType type) OVERRIDE; |
76 virtual gfx::Size GetSize() const OVERRIDE; | 75 virtual gfx::Size GetSize() const OVERRIDE; |
77 virtual content::WebContents* GetSignInWebContents() OVERRIDE; | 76 virtual content::WebContents* GetSignInWebContents() OVERRIDE; |
78 virtual bool IsShowingOverlay() const OVERRIDE; | 77 virtual bool IsShowingOverlay() const OVERRIDE; |
79 | 78 |
80 // ConstrainedWindowMacDelegate implementation: | 79 // ConstrainedWindowMacDelegate implementation: |
81 virtual void OnConstrainedWindowClosed( | 80 virtual void OnConstrainedWindowClosed( |
82 ConstrainedWindowMac* window) OVERRIDE; | 81 ConstrainedWindowMac* window) OVERRIDE; |
83 | 82 |
84 AutofillDialogViewDelegate* delegate() { return delegate_; } | 83 AutofillDialogViewDelegate* delegate() { return delegate_; } |
85 | 84 |
(...skipping 10 matching lines...) Expand all Loading... |
96 // WeakPtrFactory for deferred close. | 95 // WeakPtrFactory for deferred close. |
97 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_; | 96 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_; |
98 | 97 |
99 // The delegate |this| queries for logic and state. | 98 // The delegate |this| queries for logic and state. |
100 AutofillDialogViewDelegate* delegate_; | 99 AutofillDialogViewDelegate* delegate_; |
101 }; | 100 }; |
102 | 101 |
103 } // autofill | 102 } // autofill |
104 | 103 |
105 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ | 104 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ |
OLD | NEW |