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

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

Issue 391343010: Revert r283051: Fix positioning of Autofill popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/autofill_popup_base_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 9 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
10 #include "ui/views/focus/widget_focus_manager.h" 10 #include "ui/views/focus/widget_focus_manager.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 59 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
60 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 60 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
61 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 61 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
63 63
64 // views::WidgetFocusChangeListener implementation. 64 // views::WidgetFocusChangeListener implementation.
65 virtual void OnNativeFocusChange(gfx::NativeView focused_before, 65 virtual void OnNativeFocusChange(gfx::NativeView focused_before,
66 gfx::NativeView focused_now) OVERRIDE; 66 gfx::NativeView focused_now) OVERRIDE;
67 67
68 // views::WidgetObserver implementation. 68 // views::WidgetObserver implementation.
69 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
70 virtual void OnWidgetBoundsChanged(views::Widget* widget, 69 virtual void OnWidgetBoundsChanged(views::Widget* widget,
71 const gfx::Rect& new_bounds) OVERRIDE; 70 const gfx::Rect& new_bounds) OVERRIDE;
72 71
73 // Stop observing the |observing_widget_|. 72 // Stop observing the |observing_widget_|.
74 void RemoveObserver(); 73 void RemoveObserver();
75 74
76 void SetSelection(const gfx::Point& point); 75 void SetSelection(const gfx::Point& point);
77 void AcceptSelection(const gfx::Point& point); 76 void AcceptSelection(const gfx::Point& point);
78 void ClearSelection(); 77 void ClearSelection();
79 78
(...skipping 11 matching lines...) Expand all
91 views::Widget* observing_widget_; 90 views::Widget* observing_widget_;
92 91
93 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_; 92 base::WeakPtrFactory<AutofillPopupBaseView> weak_ptr_factory_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView); 94 DISALLOW_COPY_AND_ASSIGN(AutofillPopupBaseView);
96 }; 95 };
97 96
98 } // namespace autofill 97 } // namespace autofill
99 98
100 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_ 99 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_BASE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/autofill_popup_base_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698