Chromium Code Reviews| 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 const OmniboxViewViews* omnibox_view() const { return omnibox_view_; } | 216 const OmniboxViewViews* omnibox_view() const { return omnibox_view_; } |
| 217 | 217 |
| 218 // Returns the height of the control without the top and bottom | 218 // Returns the height of the control without the top and bottom |
| 219 // edges(i.e. the height of the edit control inside). If | 219 // edges(i.e. the height of the edit control inside). If |
| 220 // |use_preferred_size| is true this will be the preferred height, | 220 // |use_preferred_size| is true this will be the preferred height, |
| 221 // otherwise it will be the current height. | 221 // otherwise it will be the current height. |
| 222 int GetInternalHeight(bool use_preferred_size); | 222 int GetInternalHeight(bool use_preferred_size); |
| 223 | 223 |
| 224 // Returns the position and width that the popup should be, and also the left | 224 // Returns the position and width that the popup should be, and also the left |
| 225 // edge that the results should align themselves to (which will leave some | 225 // edge that the results should align themselves to (which will leave some |
| 226 // border on the left of the popup). | 226 // border on the left of the popup). |top_edge_overlap| specifies the number |
| 227 // of pixels the top edge of the popup should overlap the bottom edge of | |
| 228 // the location bar. | |
|
Peter Kasting
2015/08/27 19:05:04
I think you mean "toolbar" rather than "location b
tdanderson
2015/08/27 19:47:20
Done.
| |
| 227 void GetOmniboxPopupPositioningInfo(gfx::Point* top_left_screen_coord, | 229 void GetOmniboxPopupPositioningInfo(gfx::Point* top_left_screen_coord, |
| 228 int* popup_width, | 230 int* popup_width, |
| 229 int* left_margin, | 231 int* left_margin, |
| 230 int* right_margin); | 232 int* right_margin, |
| 233 int top_edge_overlap); | |
| 231 | 234 |
| 232 // Updates the controller, and, if |contents| is non-null, restores saved | 235 // Updates the controller, and, if |contents| is non-null, restores saved |
| 233 // state that the tab holds. | 236 // state that the tab holds. |
| 234 void Update(const content::WebContents* contents); | 237 void Update(const content::WebContents* contents); |
| 235 | 238 |
| 236 // Clears the location bar's state for |contents|. | 239 // Clears the location bar's state for |contents|. |
| 237 void ResetTabState(content::WebContents* contents); | 240 void ResetTabState(content::WebContents* contents); |
| 238 | 241 |
| 239 // LocationBar: | 242 // LocationBar: |
| 240 void FocusLocation(bool select_all) override; | 243 void FocusLocation(bool select_all) override; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 481 int dropdown_animation_offset_; | 484 int dropdown_animation_offset_; |
| 482 | 485 |
| 483 // This is a debug state variable that stores if the WebContents was null | 486 // This is a debug state variable that stores if the WebContents was null |
| 484 // during the last RefreshPageAction. | 487 // during the last RefreshPageAction. |
| 485 bool web_contents_null_at_last_refresh_; | 488 bool web_contents_null_at_last_refresh_; |
| 486 | 489 |
| 487 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 490 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 488 }; | 491 }; |
| 489 | 492 |
| 490 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 493 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |