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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 294 // The same, but for the top and bottom edges. | 294 // The same, but for the top and bottom edges. |
| 295 int vertical_edge_thickness() const { | 295 int vertical_edge_thickness() const { |
| 296 return is_popup_mode_ ? kPopupEdgeThickness : kNormalEdgeThickness; | 296 return is_popup_mode_ ? kPopupEdgeThickness : kNormalEdgeThickness; |
| 297 } | 297 } |
| 298 | 298 |
| 299 // Updates the visibility state of the Content Blocked icons to reflect what | 299 // Updates the visibility state of the Content Blocked icons to reflect what |
| 300 // is actually blocked on the current page. Returns true if the visibility | 300 // is actually blocked on the current page. Returns true if the visibility |
| 301 // of at least one of the views in |content_setting_views_| changed. | 301 // of at least one of the views in |content_setting_views_| changed. |
| 302 bool RefreshContentSettingViews(); | 302 bool RefreshContentSettingViews(); |
| 303 | 303 |
| 304 // Deletes all page action views that we have created. | 304 // Deletes all page actions and page action views that we have created. |
| 305 void DeletePageActionViews(); | 305 void DeletePageActionsAndViews(); |
| 306 | 306 |
| 307 // Updates the views for the Page Actions, to reflect state changes for | 307 // Updates the views for the Page Actions, to reflect state changes for |
| 308 // PageActions. Returns true if the visibility of a PageActionWithBadgeView | 308 // PageActions. Returns true if the visibility of a PageActionWithBadgeView |
| 309 // changed, or PageActionWithBadgeView were created/destroyed. | 309 // changed, or PageActionWithBadgeView were created/destroyed. |
| 310 bool RefreshPageActionViews(); | 310 bool RefreshPageActionViews(); |
| 311 | 311 |
| 312 // Updates the view for the zoom icon based on the current tab's zoom. Returns | 312 // Updates the view for the zoom icon based on the current tab's zoom. Returns |
| 313 // true if the visibility of the view changed. | 313 // true if the visibility of the view changed. |
| 314 bool RefreshZoomView(); | 314 bool RefreshZoomView(); |
| 315 | 315 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 // A bubble that shows after successfully generating a new credit card number. | 467 // A bubble that shows after successfully generating a new credit card number. |
| 468 GeneratedCreditCardView* generated_credit_card_view_; | 468 GeneratedCreditCardView* generated_credit_card_view_; |
| 469 | 469 |
| 470 // The icon to open a PDF in Reader. | 470 // The icon to open a PDF in Reader. |
| 471 OpenPDFInReaderView* open_pdf_in_reader_view_; | 471 OpenPDFInReaderView* open_pdf_in_reader_view_; |
| 472 | 472 |
| 473 // The manage passwords icon. | 473 // The manage passwords icon. |
| 474 ManagePasswordsIconView* manage_passwords_icon_view_; | 474 ManagePasswordsIconView* manage_passwords_icon_view_; |
| 475 | 475 |
| 476 // The current page actions. | 476 // The current page actions. |
| 477 // There should be a 1:1 correspondence between elements of |page_actions_| | |
| 478 // and elements of |page_action_views_|. | |
| 477 PageActions page_actions_; | 479 PageActions page_actions_; |
| 478 | 480 |
| 479 // The page action icon views. | 481 // The page action icon views. |
| 482 // There should be a 1:1 correspondence between elements of |page_actions_| | |
| 483 // and elements of |page_action_views_|. | |
| 480 PageActionViews page_action_views_; | 484 PageActionViews page_action_views_; |
|
danduong
2014/12/20 03:17:02
page_action_views_ actually have a ref their corre
erikchen
2014/12/22 20:39:43
Yup, done.
| |
| 481 | 485 |
| 482 // The icon for Translate. | 486 // The icon for Translate. |
| 483 TranslateIconView* translate_icon_view_; | 487 TranslateIconView* translate_icon_view_; |
| 484 | 488 |
| 485 // The star. | 489 // The star. |
| 486 StarView* star_view_; | 490 StarView* star_view_; |
| 487 | 491 |
| 488 // The search/go button. | 492 // The search/go button. |
| 489 SearchButton* search_button_; | 493 SearchButton* search_button_; |
| 490 | 494 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 546 // The width is always positive. The ending width is the width of the entire | 550 // The width is always positive. The ending width is the width of the entire |
| 547 // omnibox URL. As the show animation runs, the current width gradually moves | 551 // omnibox URL. As the show animation runs, the current width gradually moves |
| 548 // from the width of the hostname to the ending value. | 552 // from the width of the hostname to the ending value. |
| 549 int current_omnibox_width_; | 553 int current_omnibox_width_; |
| 550 int ending_omnibox_width_; | 554 int ending_omnibox_width_; |
| 551 | 555 |
| 552 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 556 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 553 }; | 557 }; |
| 554 | 558 |
| 555 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 559 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |