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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 static int GetBuiltInHorizontalPaddingForChildViews(); | 376 static int GetBuiltInHorizontalPaddingForChildViews(); |
377 | 377 |
378 // Returns the thickness of any visible left and right edge, in pixels. | 378 // Returns the thickness of any visible left and right edge, in pixels. |
379 int GetHorizontalEdgeThickness() const; | 379 int GetHorizontalEdgeThickness() const; |
380 | 380 |
381 // The same, but for the top and bottom edges. | 381 // The same, but for the top and bottom edges. |
382 int vertical_edge_thickness() const { | 382 int vertical_edge_thickness() const { |
383 return is_popup_mode_ ? kPopupEdgeThickness : kNormalEdgeThickness; | 383 return is_popup_mode_ ? kPopupEdgeThickness : kNormalEdgeThickness; |
384 } | 384 } |
385 | 385 |
386 // Update the visibility state of the Content Blocked icons to reflect what is | 386 // Update the visibility state of the Content Blocked icons to reflect what is |
Peter Kasting
2013/09/05 06:55:19
Nit: Update -> Updates
npentrel
2013/09/05 08:28:09
Done.
| |
387 // actually blocked on the current page. | 387 // actually blocked on the current page. |
Peter Kasting
2013/09/05 06:55:19
Nit: Add to end:
Calling this function should alw
npentrel
2013/09/05 08:28:09
Done.
| |
388 void RefreshContentSettingViews(); | 388 void UpdateContentSettingViewsPreLayout(); |
389 | |
390 // Updates after the correct screen coordinates have been set for icons. | |
Peter Kasting
2013/09/05 06:55:19
Nit: How about:
Allows content setting icons to p
npentrel
2013/09/05 08:28:09
Done.
| |
391 void UpdateContentSettingViewsPostLayout(); | |
389 | 392 |
390 // Delete all page action views that we have created. | 393 // Delete all page action views that we have created. |
391 void DeletePageActionViews(); | 394 void DeletePageActionViews(); |
392 | 395 |
393 // Update the views for the Page Actions, to reflect state changes for | 396 // Update the views for the Page Actions, to reflect state changes for |
394 // PageActions. | 397 // PageActions. |
395 void RefreshPageActionViews(); | 398 void RefreshPageActionViews(); |
396 | 399 |
397 // Returns the number of scripts currently running on the page. | 400 // Returns the number of scripts currently running on the page. |
398 size_t ScriptBubbleScriptsRunning(); | 401 size_t ScriptBubbleScriptsRunning(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
531 // in the right location. | 534 // in the right location. |
532 int animation_offset_; | 535 int animation_offset_; |
533 | 536 |
534 // Used to register for notifications received by NotificationObserver. | 537 // Used to register for notifications received by NotificationObserver. |
535 content::NotificationRegistrar registrar_; | 538 content::NotificationRegistrar registrar_; |
536 | 539 |
537 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 540 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
538 }; | 541 }; |
539 | 542 |
540 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 543 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |