OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/autocomplete/autocomplete.h" | 10 #include "chrome/browser/autocomplete/autocomplete.h" |
10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 11 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
11 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" | 12 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" |
12 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view_model.h" | 13 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view_model.h" |
13 #include "ui/base/animation/animation_delegate.h" | 14 #include "ui/base/animation/animation_delegate.h" |
14 #include "ui/base/animation/slide_animation.h" | 15 #include "ui/base/animation/slide_animation.h" |
15 #include "ui/gfx/font.h" | 16 #include "ui/gfx/font.h" |
16 #include "ui/views/view.h" | 17 #include "ui/views/view.h" |
17 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
18 | 19 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // The popup sizes vertically using an animation when the popup is getting | 171 // The popup sizes vertically using an animation when the popup is getting |
171 // shorter (not larger, that makes it look "slow"). | 172 // shorter (not larger, that makes it look "slow"). |
172 ui::SlideAnimation size_animation_; | 173 ui::SlideAnimation size_animation_; |
173 gfx::Rect start_bounds_; | 174 gfx::Rect start_bounds_; |
174 gfx::Rect target_bounds_; | 175 gfx::Rect target_bounds_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView); | 177 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView); |
177 }; | 178 }; |
178 | 179 |
179 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW
_H_ | 180 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW
_H_ |
OLD | NEW |