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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" | 11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" |
12 #include "ui/views/focus/widget_focus_manager.h" | 12 #include "ui/views/focus/widget_focus_manager.h" |
13 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
14 #include "ui/views/widget/widget_observer.h" | 14 #include "ui/views/widget/widget_observer.h" |
15 | 15 |
16 namespace content { | |
17 class WebContents; | |
18 } | |
19 | |
20 namespace gfx { | 16 namespace gfx { |
21 class Point; | 17 class Point; |
22 } | 18 } |
23 | 19 |
24 namespace autofill { | 20 namespace autofill { |
25 | 21 |
26 // Class that deals with the event handling for Autofill-style popups. This | 22 // Class that deals with the event handling for Autofill-style popups. This |
27 // class should only be instantiated by sub-classes. | 23 // class should only be instantiated by sub-classes. |
28 class AutofillPopupBaseView : public views::WidgetDelegateView, | 24 class AutofillPopupBaseView : public views::WidgetDelegateView, |
29 public views::WidgetFocusChangeListener, | 25 public views::WidgetFocusChangeListener, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 base::Time show_time_; | 82 base::Time show_time_; |
87 | 83 |
88 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; | 84 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; |
89 | 85 |
90 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); | 86 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); |
91 }; | 87 }; |
92 | 88 |
93 } // namespace autofill | 89 } // namespace autofill |
94 | 90 |
95 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ |
OLD | NEW |