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/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Invoked when the view was destroyed by by someone other than this class. | 51 // Invoked when the view was destroyed by by someone other than this class. |
52 void ViewDestroyed() override; | 52 void ViewDestroyed() override; |
53 | 53 |
54 bool HandleKeyPressEvent(const content::NativeWebKeyboardEvent& event); | 54 bool HandleKeyPressEvent(const content::NativeWebKeyboardEvent& event); |
55 | 55 |
56 // Tells the view to capture mouse events. Must be called before |Show()|. | 56 // Tells the view to capture mouse events. Must be called before |Show()|. |
57 void set_hide_on_outside_click(bool hide_on_outside_click); | 57 void set_hide_on_outside_click(bool hide_on_outside_click); |
58 | 58 |
59 protected: | 59 protected: |
60 FRIEND_TEST_ALL_PREFIXES(AutofillExternalDelegateBrowserTest, | |
61 CloseWidgetAndNoLeaking); | |
62 FRIEND_TEST_ALL_PREFIXES(AutofillPopupControllerUnitTest, | 60 FRIEND_TEST_ALL_PREFIXES(AutofillPopupControllerUnitTest, |
63 ProperlyResetController); | 61 ProperlyResetController); |
64 | 62 |
65 AutofillPopupControllerImpl(base::WeakPtr<AutofillPopupDelegate> delegate, | 63 AutofillPopupControllerImpl(base::WeakPtr<AutofillPopupDelegate> delegate, |
66 content::WebContents* web_contents, | 64 content::WebContents* web_contents, |
67 gfx::NativeView container_view, | 65 gfx::NativeView container_view, |
68 const gfx::RectF& element_bounds, | 66 const gfx::RectF& element_bounds, |
69 base::i18n::TextDirection text_direction); | 67 base::i18n::TextDirection text_direction); |
70 ~AutofillPopupControllerImpl() override; | 68 ~AutofillPopupControllerImpl() override; |
71 | 69 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // The line that is currently selected by the user. | 191 // The line that is currently selected by the user. |
194 // |kNoSelection| indicates that no line is currently selected. | 192 // |kNoSelection| indicates that no line is currently selected. |
195 int selected_line_; | 193 int selected_line_; |
196 | 194 |
197 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 195 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
198 }; | 196 }; |
199 | 197 |
200 } // namespace autofill | 198 } // namespace autofill |
201 | 199 |
202 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 200 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
OLD | NEW |