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

Side by Side Diff: chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h

Issue 10828265: Replace views::LocatedEvent with ui::LocatedEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 (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_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" 10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // provided disposition. 105 // provided disposition.
106 void OpenIndex(size_t index, WindowOpenDisposition disposition); 106 void OpenIndex(size_t index, WindowOpenDisposition disposition);
107 107
108 // Find the index of the match under the given |point|, specified in window 108 // Find the index of the match under the given |point|, specified in window
109 // coordinates. Returns AutocompletePopupModel::kNoMatch if there isn't a 109 // coordinates. Returns AutocompletePopupModel::kNoMatch if there isn't a
110 // match at the specified point. 110 // match at the specified point.
111 size_t GetIndexForPoint(const gfx::Point& point); 111 size_t GetIndexForPoint(const gfx::Point& point);
112 112
113 // Processes a located event (e.g. mouse/gesture) and sets the selection/hover 113 // Processes a located event (e.g. mouse/gesture) and sets the selection/hover
114 // state of a line in the list. 114 // state of a line in the list.
115 void UpdateLineEvent(const views::LocatedEvent& event, 115 void UpdateLineEvent(const ui::LocatedEvent& event,
116 bool should_set_selected_line); 116 bool should_set_selected_line);
117 117
118 // Opens an entry from the list depending on the event and the selected 118 // Opens an entry from the list depending on the event and the selected
119 // disposition. 119 // disposition.
120 void OpenSelectedLine(const views::LocatedEvent& event, 120 void OpenSelectedLine(const ui::LocatedEvent& event,
121 WindowOpenDisposition disposition); 121 WindowOpenDisposition disposition);
122 122
123 // Returns the target bounds given the specified content height. 123 // Returns the target bounds given the specified content height.
124 // TODO(sky): convert to size. 124 // TODO(sky): convert to size.
125 gfx::Rect CalculateTargetBounds(int h); 125 gfx::Rect CalculateTargetBounds(int h);
126 126
127 // The edit view that invokes us. 127 // The edit view that invokes us.
128 OmniboxView* omnibox_view_; 128 OmniboxView* omnibox_view_;
129 129
130 Profile* profile_; 130 Profile* profile_;
(...skipping 20 matching lines...) Expand all
151 // shorter (not larger, that makes it look "slow"). 151 // shorter (not larger, that makes it look "slow").
152 ui::SlideAnimation size_animation_; 152 ui::SlideAnimation size_animation_;
153 // TODO(sky): convert to sizes. 153 // TODO(sky): convert to sizes.
154 gfx::Rect start_bounds_; 154 gfx::Rect start_bounds_;
155 gfx::Rect target_bounds_; 155 gfx::Rect target_bounds_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(InlineOmniboxPopupView); 157 DISALLOW_COPY_AND_ASSIGN(InlineOmniboxPopupView);
158 }; 158 };
159 159
160 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_ 160 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_INLINE_OMNIBOX_POPUP_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/page_info_helper.cc ('k') | chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698