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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 bool RefreshManagePasswordsIconView(); | 321 bool RefreshManagePasswordsIconView(); |
322 | 322 |
323 // Helper to show the first run info bubble. | 323 // Helper to show the first run info bubble. |
324 void ShowFirstRunBubbleInternal(); | 324 void ShowFirstRunBubbleInternal(); |
325 | 325 |
326 // Returns true if the suggest text is valid. | 326 // Returns true if the suggest text is valid. |
327 bool HasValidSuggestText() const; | 327 bool HasValidSuggestText() const; |
328 | 328 |
329 bool ShouldShowKeywordBubble() const; | 329 bool ShouldShowKeywordBubble() const; |
330 bool ShouldShowEVBubble() const; | 330 bool ShouldShowEVBubble() const; |
| 331 bool ShouldShowGoodBubble() const; |
| 332 bool ShouldShowDubiousBubble() const; |
| 333 bool ShouldShowBadBubble() const; |
331 | 334 |
332 // Used to "reverse" the URL showing/hiding animations, since we use separate | 335 // Used to "reverse" the URL showing/hiding animations, since we use separate |
333 // animations whose curves are not true inverses of each other. Based on the | 336 // animations whose curves are not true inverses of each other. Based on the |
334 // current position of the omnibox, calculates what value the desired | 337 // current position of the omnibox, calculates what value the desired |
335 // animation (|hide_url_animation_| if |hide| is true, |show_url_animation_| | 338 // animation (|hide_url_animation_| if |hide| is true, |show_url_animation_| |
336 // if it's false) should be set to in order to produce the same omnibox | 339 // if it's false) should be set to in order to produce the same omnibox |
337 // position. This way we can stop the old animation, set the new animation to | 340 // position. This way we can stop the old animation, set the new animation to |
338 // this value, and start it running, and the text will appear to reverse | 341 // this value, and start it running, and the text will appear to reverse |
339 // directions from its current location. | 342 // directions from its current location. |
340 double GetValueForAnimation(bool hide) const; | 343 double GetValueForAnimation(bool hide) const; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 | 434 |
432 // The origin chip that may appear in the location bar. | 435 // The origin chip that may appear in the location bar. |
433 OriginChipView* origin_chip_view_; | 436 OriginChipView* origin_chip_view_; |
434 | 437 |
435 // An icon to the left of the edit field. | 438 // An icon to the left of the edit field. |
436 LocationIconView* location_icon_view_; | 439 LocationIconView* location_icon_view_; |
437 | 440 |
438 // A bubble displayed for EV HTTPS sites. | 441 // A bubble displayed for EV HTTPS sites. |
439 EVBubbleView* ev_bubble_view_; | 442 EVBubbleView* ev_bubble_view_; |
440 | 443 |
| 444 // A bubble displayed for Good HTTPS sites. |
| 445 EVBubbleView* good_bubble_view_; |
| 446 |
| 447 // A bubble displayed for Dubious HTTPS sites. |
| 448 EVBubbleView* dubious_bubble_view_; |
| 449 |
| 450 // A bubble displayed for Bad (unauthenticated, potential-impostor, or |
| 451 // known-impostor) sites. |
| 452 EVBubbleView* bad_bubble_view_; |
| 453 |
441 // A view to show inline autocompletion when an IME is active. In this case, | 454 // A view to show inline autocompletion when an IME is active. In this case, |
442 // we shouldn't change the text or selection inside the OmniboxView itself, | 455 // we shouldn't change the text or selection inside the OmniboxView itself, |
443 // since this will conflict with the IME's control over the text. So instead | 456 // since this will conflict with the IME's control over the text. So instead |
444 // we show any autocompletion in a separate field after the OmniboxView. | 457 // we show any autocompletion in a separate field after the OmniboxView. |
445 views::Label* ime_inline_autocomplete_view_; | 458 views::Label* ime_inline_autocomplete_view_; |
446 | 459 |
447 // The following views are used to provide hints and remind the user as to | 460 // The following views are used to provide hints and remind the user as to |
448 // what is going in the edit. They are all added a children of the | 461 // what is going in the edit. They are all added a children of the |
449 // LocationBarView. At most one is visible at a time. Preference is | 462 // LocationBarView. At most one is visible at a time. Preference is |
450 // given to the keyword_view_, then hint_view_. | 463 // given to the keyword_view_, then hint_view_. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 int current_omnibox_width_; | 570 int current_omnibox_width_; |
558 int ending_omnibox_width_; | 571 int ending_omnibox_width_; |
559 | 572 |
560 // Used to register for notifications received by NotificationObserver. | 573 // Used to register for notifications received by NotificationObserver. |
561 content::NotificationRegistrar registrar_; | 574 content::NotificationRegistrar registrar_; |
562 | 575 |
563 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 576 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
564 }; | 577 }; |
565 | 578 |
566 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 579 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |