Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_popup_base_view.h

Issue 2727233003: Uses child views in Autofill Popup so we can trigger (Closed)
Patch Set: (int) to NSInteger Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 17 matching lines...) Expand all
28 explicit AutofillPopupBaseView(AutofillPopupViewDelegate* delegate, 28 explicit AutofillPopupBaseView(AutofillPopupViewDelegate* delegate,
29 views::Widget* parent_widget); 29 views::Widget* parent_widget);
30 ~AutofillPopupBaseView() override; 30 ~AutofillPopupBaseView() override;
31 31
32 // Show this popup. Idempotent. 32 // Show this popup. Idempotent.
33 void DoShow(); 33 void DoShow();
34 34
35 // Hide the widget and delete |this|. 35 // Hide the widget and delete |this|.
36 void DoHide(); 36 void DoHide();
37 37
38 // Update size of popup and paint. 38 // Update size of popup and paint (virtual for testing).
39 void DoUpdateBoundsAndRedrawPopup(); 39 virtual void DoUpdateBoundsAndRedrawPopup();
40 40
41 private: 41 private:
42 friend class AutofillPopupBaseViewTest; 42 friend class AutofillPopupBaseViewTest;
43 43
44 // views::Views implementation. 44 // views::Views implementation.
45 void OnMouseCaptureLost() override; 45 void OnMouseCaptureLost() override;
46 bool OnMouseDragged(const ui::MouseEvent& event) override; 46 bool OnMouseDragged(const ui::MouseEvent& event) override;
47 void OnMouseExited(const ui::MouseEvent& event) override; 47 void OnMouseExited(const ui::MouseEvent& event) override;
48 void OnMouseMoved(const ui::MouseEvent& event) override; 48 void OnMouseMoved(const ui::MouseEvent& event) override;
49 bool OnMousePressed(const ui::MouseEvent& event) override; 49 bool OnMousePressed(const ui::MouseEvent& event) override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::Time show_time_; 82 base::Time show_time_;
83 83
84 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; 84 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); 86 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView);
87 }; 87 };
88 88
89 } // namespace autofill 89 } // namespace autofill
90 90
91 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ 91 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698