| 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_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Point; | 11 class Point; |
| 12 class Rect; | 12 class Rect; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace autofill { | 15 namespace autofill { |
| 16 | 16 |
| 17 // Base class for Controllers of Autofill style popups. This interface is | 17 // Base class for Controllers of Autofill-style popups. This interface is |
| 18 // used by the relevant views to communicate with the controller. | 18 // used by the relevant views to communicate with the controller. |
| 19 class AutofillPopupViewDelegate { | 19 class AutofillPopupViewDelegate { |
| 20 public: | 20 public: |
| 21 // Called when the popup should be hidden. Controller will be deleted after | 21 // Called when the popup should be hidden. Controller will be deleted after |
| 22 // the view has been hidden and destroyed. | 22 // the view has been hidden and destroyed. |
| 23 virtual void Hide() = 0; | 23 virtual void Hide() = 0; |
| 24 | 24 |
| 25 // Called whent the popup view was destroyed. | 25 // Called whent the popup view was destroyed. |
| 26 virtual void ViewDestroyed() = 0; | 26 virtual void ViewDestroyed() = 0; |
| 27 | 27 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 43 // The view that the form field element sits in. | 43 // The view that the form field element sits in. |
| 44 virtual gfx::NativeView container_view() = 0; | 44 virtual gfx::NativeView container_view() = 0; |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 virtual ~AutofillPopupViewDelegate() {} | 47 virtual ~AutofillPopupViewDelegate() {} |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace autofill | 50 } // namespace autofill |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ | 52 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_DELEGATE_H_ |
| OLD | NEW |