| OLD | NEW |
| 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_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 9 #include "components/omnibox/browser/omnibox_popup_model.h" | 12 #include "components/omnibox/browser/omnibox_popup_model.h" |
| 10 #include "components/omnibox/browser/omnibox_popup_view.h" | 13 #include "components/omnibox/browser/omnibox_popup_view.h" |
| 11 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 12 #include "ui/gfx/animation/animation_delegate.h" | 15 #include "ui/gfx/animation/animation_delegate.h" |
| 13 #include "ui/gfx/animation/slide_animation.h" | 16 #include "ui/gfx/animation/slide_animation.h" |
| 14 #include "ui/gfx/font_list.h" | 17 #include "ui/gfx/font_list.h" |
| 15 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
| 16 #include "ui/views/view_targeter_delegate.h" | 19 #include "ui/views/view_targeter_delegate.h" |
| 17 | 20 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 166 |
| 164 // When the dropdown is not wide enough while displaying postfix suggestions, | 167 // When the dropdown is not wide enough while displaying postfix suggestions, |
| 165 // we use the width of widest match contents to shift the suggestions so that | 168 // we use the width of widest match contents to shift the suggestions so that |
| 166 // the widest suggestion just reaches the end edge. | 169 // the widest suggestion just reaches the end edge. |
| 167 int max_match_contents_width_; | 170 int max_match_contents_width_; |
| 168 | 171 |
| 169 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 172 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 175 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| OLD | NEW |