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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.h

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved comments Created 7 years, 1 month 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 (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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ProperlyResetController); 76 ProperlyResetController);
77 77
78 AutofillPopupControllerImpl(base::WeakPtr<AutofillPopupDelegate> delegate, 78 AutofillPopupControllerImpl(base::WeakPtr<AutofillPopupDelegate> delegate,
79 gfx::NativeView container_view, 79 gfx::NativeView container_view,
80 const gfx::RectF& element_bounds, 80 const gfx::RectF& element_bounds,
81 base::i18n::TextDirection text_direction); 81 base::i18n::TextDirection text_direction);
82 virtual ~AutofillPopupControllerImpl(); 82 virtual ~AutofillPopupControllerImpl();
83 83
84 // AutofillPopupController implementation. 84 // AutofillPopupController implementation.
85 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE; 85 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
86 virtual void MouseHovered(int x, int y) OVERRIDE; 86 virtual void LineSelectedAtPoint(int x, int y) OVERRIDE;
87 virtual void MouseClicked(int x, int y) OVERRIDE; 87 virtual void LineAcceptedAtPoint(int x, int y) OVERRIDE;
88 virtual void MouseExitedPopup() OVERRIDE; 88 virtual void SelectionCleared() OVERRIDE;
89 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) OVERRIDE; 89 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) OVERRIDE;
90 virtual void AcceptSuggestion(size_t index) OVERRIDE; 90 virtual void AcceptSuggestion(size_t index) OVERRIDE;
91 virtual int GetIconResourceID(const string16& resource_name) OVERRIDE; 91 virtual int GetIconResourceID(const string16& resource_name) OVERRIDE;
92 virtual bool CanDelete(size_t index) const OVERRIDE; 92 virtual bool CanDelete(size_t index) const OVERRIDE;
93 virtual bool IsWarning(size_t index) const OVERRIDE; 93 virtual bool IsWarning(size_t index) const OVERRIDE;
94 virtual gfx::Rect GetRowBounds(size_t index) OVERRIDE; 94 virtual gfx::Rect GetRowBounds(size_t index) OVERRIDE;
95 virtual void SetPopupBounds(const gfx::Rect& bounds) OVERRIDE; 95 virtual void SetPopupBounds(const gfx::Rect& bounds) OVERRIDE;
96 virtual const gfx::Rect& popup_bounds() const OVERRIDE; 96 virtual const gfx::Rect& popup_bounds() const OVERRIDE;
97 virtual gfx::NativeView container_view() const OVERRIDE; 97 virtual gfx::NativeView container_view() const OVERRIDE;
98 virtual const gfx::RectF& element_bounds() const OVERRIDE; 98 virtual const gfx::RectF& element_bounds() const OVERRIDE;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool hide_on_outside_click_; 234 bool hide_on_outside_click_;
235 235
236 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_; 236 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_;
237 237
238 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; 238 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_;
239 }; 239 };
240 240
241 } // namespace autofill 241 } // namespace autofill
242 242
243 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ 243 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller.h ('k') | chrome/browser/ui/autofill/autofill_popup_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698