| 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 "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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // shorter (not larger, that makes it look "slow"). | 162 // shorter (not larger, that makes it look "slow"). |
| 163 gfx::SlideAnimation size_animation_; | 163 gfx::SlideAnimation size_animation_; |
| 164 gfx::Rect start_bounds_; | 164 gfx::Rect start_bounds_; |
| 165 gfx::Rect target_bounds_; | 165 gfx::Rect target_bounds_; |
| 166 | 166 |
| 167 int left_margin_; | 167 int left_margin_; |
| 168 int right_margin_; | 168 int right_margin_; |
| 169 | 169 |
| 170 const gfx::ImageSkia* bottom_shadow_; // Ptr owned by resource bundle. | 170 const gfx::ImageSkia* bottom_shadow_; // Ptr owned by resource bundle. |
| 171 | 171 |
| 172 // Amount of extra padding to add to the popup on the top and bottom. | |
| 173 int outside_vertical_padding_; | |
| 174 | |
| 175 // When the dropdown is not wide enough while displaying postfix suggestions, | 172 // When the dropdown is not wide enough while displaying postfix suggestions, |
| 176 // we use the width of widest match contents to shift the suggestions so that | 173 // we use the width of widest match contents to shift the suggestions so that |
| 177 // the widest suggestion just reaches the end edge. | 174 // the widest suggestion just reaches the end edge. |
| 178 int max_match_contents_width_; | 175 int max_match_contents_width_; |
| 179 | 176 |
| 180 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 177 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 180 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| OLD | NEW |