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_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/time/time.h" |
9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" | 10 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" |
10 #include "ui/views/focus/widget_focus_manager.h" | 11 #include "ui/views/focus/widget_focus_manager.h" |
11 #include "ui/views/widget/widget_delegate.h" | 12 #include "ui/views/widget/widget_delegate.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class WebContents; | 15 class WebContents; |
15 } | 16 } |
16 | 17 |
17 namespace gfx { | 18 namespace gfx { |
18 class Point; | 19 class Point; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 80 |
80 // Must return the container view for this popup. | 81 // Must return the container view for this popup. |
81 gfx::NativeView container_view(); | 82 gfx::NativeView container_view(); |
82 | 83 |
83 // Controller for this popup. Weak reference. | 84 // Controller for this popup. Weak reference. |
84 AutofillPopupViewDelegate* delegate_; | 85 AutofillPopupViewDelegate* delegate_; |
85 | 86 |
86 // The focus manager that |this| observes. Weak reference. | 87 // The focus manager that |this| observes. Weak reference. |
87 views::FocusManager* focus_manager_; | 88 views::FocusManager* focus_manager_; |
88 | 89 |
| 90 // The time when the popup was shown. |
| 91 base::Time show_time_; |
| 92 |
89 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; | 93 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; |
90 | 94 |
91 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); | 95 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); |
92 }; | 96 }; |
93 | 97 |
94 } // namespace autofill | 98 } // namespace autofill |
95 | 99 |
96 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ |
OLD | NEW |