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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 bool RefreshManagePasswordsIconView(); | 313 bool RefreshManagePasswordsIconView(); |
| 314 | 314 |
| 315 // Helper to show the first run info bubble. | 315 // Helper to show the first run info bubble. |
| 316 void ShowFirstRunBubbleInternal(); | 316 void ShowFirstRunBubbleInternal(); |
| 317 | 317 |
| 318 // Returns true if the suggest text is valid. | 318 // Returns true if the suggest text is valid. |
| 319 bool HasValidSuggestText() const; | 319 bool HasValidSuggestText() const; |
| 320 | 320 |
| 321 bool ShouldShowKeywordBubble() const; | 321 bool ShouldShowKeywordBubble() const; |
| 322 bool ShouldShowEVBubble() const; | 322 bool ShouldShowEVBubble() const; |
| 323 bool ShouldShowSecureVerbose() const; | |
|
Peter Kasting
2016/07/19 21:17:21
This isn't a very good function name, because "sec
Kevin Bailey
2016/08/12 18:49:14
Done.
| |
| 323 | 324 |
| 324 // Used to "reverse" the URL showing/hiding animations, since we use separate | 325 // Used to "reverse" the URL showing/hiding animations, since we use separate |
| 325 // animations whose curves are not true inverses of each other. Based on the | 326 // animations whose curves are not true inverses of each other. Based on the |
| 326 // current position of the omnibox, calculates what value the desired | 327 // current position of the omnibox, calculates what value the desired |
| 327 // animation (|hide_url_animation_| if |hide| is true, |show_url_animation_| | 328 // animation (|hide_url_animation_| if |hide| is true, |show_url_animation_| |
| 328 // if it's false) should be set to in order to produce the same omnibox | 329 // if it's false) should be set to in order to produce the same omnibox |
| 329 // position. This way we can stop the old animation, set the new animation to | 330 // position. This way we can stop the old animation, set the new animation to |
| 330 // this value, and start it running, and the text will appear to reverse | 331 // this value, and start it running, and the text will appear to reverse |
| 331 // directions from its current location. | 332 // directions from its current location. |
| 332 double GetValueForAnimation(bool hide) const; | 333 double GetValueForAnimation(bool hide) const; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 471 BooleanPrefMember edit_bookmarks_enabled_; | 472 BooleanPrefMember edit_bookmarks_enabled_; |
| 472 | 473 |
| 473 // This is a debug state variable that stores if the WebContents was null | 474 // This is a debug state variable that stores if the WebContents was null |
| 474 // during the last RefreshPageAction. | 475 // during the last RefreshPageAction. |
| 475 bool web_contents_null_at_last_refresh_; | 476 bool web_contents_null_at_last_refresh_; |
| 476 | 477 |
| 477 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 478 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 478 }; | 479 }; |
| 479 | 480 |
| 480 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 481 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |