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

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

Issue 187583004: Fix gesture detection for autofill popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 8 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
9 #include "ui/views/widget/widget_delegate.h" 9 #include "ui/views/widget/widget_delegate.h"
10 #include "ui/views/widget/widget_observer.h" 10 #include "ui/views/widget/widget_observer.h"
(...skipping 27 matching lines...) Expand all
38 void DoUpdateBoundsAndRedrawPopup(); 38 void DoUpdateBoundsAndRedrawPopup();
39 39
40 static const SkColor kBorderColor; 40 static const SkColor kBorderColor;
41 static const SkColor kHoveredBackgroundColor; 41 static const SkColor kHoveredBackgroundColor;
42 static const SkColor kItemTextColor; 42 static const SkColor kItemTextColor;
43 static const SkColor kPopupBackground; 43 static const SkColor kPopupBackground;
44 static const SkColor kValueTextColor; 44 static const SkColor kValueTextColor;
45 static const SkColor kWarningTextColor; 45 static const SkColor kWarningTextColor;
46 46
47 private: 47 private:
48 friend class AutofillPopupBaseViewTest;
49
48 // views::Views implementation. 50 // views::Views implementation.
49 virtual void OnMouseCaptureLost() OVERRIDE; 51 virtual void OnMouseCaptureLost() OVERRIDE;
50 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 52 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
51 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 53 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
52 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 54 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
53 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 55 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
54 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 56 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
55 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 57 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
56 58
57 // views::WidgetObserver implementation. 59 // views::WidgetObserver implementation.
(...skipping 25 matching lines...) Expand all
83 85
84 // The widget that |this| observes. Weak reference. 86 // The widget that |this| observes. Weak reference.
85 views::Widget* observing_widget_; 87 views::Widget* observing_widget_;
86 88
87 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); 89 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView);
88 }; 90 };
89 91
90 } // namespace autofill 92 } // namespace autofill
91 93
92 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698