| 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_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/public/browser/web_contents_delegate.h" | 9 #include "content/public/browser/web_contents_delegate.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 12 | 12 |
| 13 namespace autofill { | 13 namespace autofill { |
| 14 | 14 |
| 15 class AutofillDialogView; | 15 class AutofillDialogView; |
| 16 | 16 |
| 17 // AutofillDialogSignInDelegate provides a WebContentsDelegate and | 17 // AutofillDialogSignInDelegate provides a WebContentsDelegate and |
| 18 // WebContentsObserver for the sign-in page in the autofill dialog. Allows the | 18 // WebContentsObserver for the sign-in page in the autofill dialog. Allows the |
| 19 // dialog to resize based on the size of the hosted web page. | 19 // dialog to resize based on the size of the hosted web page. |
| 20 // TODO(abodenha) It probably makes sense to move the NotificationObserver | 20 // TODO(abodenha) It probably makes sense to move the NotificationObserver |
| 21 // for detecting completed sign-in to this class instead of | 21 // for detecting completed sign-in to this class instead of |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // The minimum and maximum sizes that the sign-in view may have. | 67 // The minimum and maximum sizes that the sign-in view may have. |
| 68 gfx::Size minimum_size_; | 68 gfx::Size minimum_size_; |
| 69 gfx::Size maximum_size_; | 69 gfx::Size maximum_size_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(AutofillDialogSignInDelegate); | 71 DISALLOW_COPY_AND_ASSIGN(AutofillDialogSignInDelegate); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace autofill | 74 } // namespace autofill |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| OLD | NEW |