Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 gfx::NativeView container_view, | 40 gfx::NativeView container_view, |
| 41 const gfx::RectF& element_bounds); | 41 const gfx::RectF& element_bounds); |
| 42 | 42 |
| 43 // Shows the popup, or updates the existing popup with the given values. | 43 // Shows the popup, or updates the existing popup with the given values. |
| 44 void Show(const std::vector<string16>& names, | 44 void Show(const std::vector<string16>& names, |
| 45 const std::vector<string16>& subtexts, | 45 const std::vector<string16>& subtexts, |
| 46 const std::vector<string16>& icons, | 46 const std::vector<string16>& icons, |
| 47 const std::vector<int>& identifiers); | 47 const std::vector<int>& identifiers); |
| 48 | 48 |
| 49 // Hides the popup and destroys the controller. This also invalidates | 49 // Hides the popup and destroys the controller. This also invalidates |
| 50 // |delegate_|. Virtual for testing. | 50 // |delegate_|. |
| 51 virtual void Hide(); | 51 virtual void Hide() OVERRIDE; |
|
Ilya Sherman
2013/02/22 00:29:04
nit: Move this to be grouped with the other "Autof
csharp
2013/02/22 15:41:31
This needs to be public though, the other function
Ilya Sherman
2013/02/23 00:02:36
Ah, awkward. Dunno if Evan has a preference on ho
| |
| 52 | 52 |
| 53 // KeyboardListener implementation. | 53 // KeyboardListener implementation. |
| 54 virtual bool HandleKeyPressEvent( | 54 virtual bool HandleKeyPressEvent( |
| 55 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 55 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 FRIEND_TEST_ALL_PREFIXES(AutofillExternalDelegateBrowserTest, | 58 FRIEND_TEST_ALL_PREFIXES(AutofillExternalDelegateBrowserTest, |
| 59 CloseWidgetAndNoLeaking); | 59 CloseWidgetAndNoLeaking); |
| 60 | 60 |
| 61 AutofillPopupControllerImpl(AutofillPopupDelegate* delegate, | 61 AutofillPopupControllerImpl(AutofillPopupDelegate* delegate, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 // Used to indicate if the delete icon within a row is currently selected. | 203 // Used to indicate if the delete icon within a row is currently selected. |
| 204 bool delete_icon_hovered_; | 204 bool delete_icon_hovered_; |
| 205 | 205 |
| 206 // True if |HideInternal| has already been called. | 206 // True if |HideInternal| has already been called. |
| 207 bool is_hiding_; | 207 bool is_hiding_; |
| 208 | 208 |
| 209 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 209 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 212 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
| OLD | NEW |