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_TABS_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 // Sets the network state. | 92 // Sets the network state. |
| 93 void UpdateLoadingAnimation(TabRendererData::NetworkState state); | 93 void UpdateLoadingAnimation(TabRendererData::NetworkState state); |
| 94 | 94 |
| 95 // Starts/Stops a pulse animation. | 95 // Starts/Stops a pulse animation. |
| 96 void StartPulse(); | 96 void StartPulse(); |
| 97 void StopPulse(); | 97 void StopPulse(); |
| 98 | 98 |
| 99 // Sets the visibility of the indicator shown when the tab title changes of | 99 // Sets the visibility of the indicator shown when the tab title changes of |
| 100 // an inactive pinned tab. | 100 // an inactive pinned tab. |
| 101 void SetPinnedTabTitleChangedIndicatorVisible(bool value); | 101 void SetPinnedTabTitleChangedIndicatorVisible(bool value); |
| 102 bool showing_pinned_tab_title_changed_indicator() const { | |
|
Evan Stade
2016/06/28 00:09:05
instead of adding this here, can we make an access
sky
2016/06/28 03:04:15
Done.
| |
| 103 return showing_pinned_tab_title_changed_indicator_; | |
| 104 } | |
| 102 | 105 |
| 103 // Set the background offset used to match the image in the inactive tab | 106 // Set the background offset used to match the image in the inactive tab |
| 104 // to the frame image. | 107 // to the frame image. |
| 105 void set_background_offset(const gfx::Point& offset) { | 108 void set_background_offset(const gfx::Point& offset) { |
| 106 background_offset_ = offset; | 109 background_offset_ = offset; |
| 107 } | 110 } |
| 108 | 111 |
| 109 // Returns true if this tab became the active tab selected in | 112 // Returns true if this tab became the active tab selected in |
| 110 // response to the last ui::ET_TAP_DOWN gesture dispatched to | 113 // response to the last ui::ET_TAP_DOWN gesture dispatched to |
| 111 // this tab. Only used for collecting UMA metrics. | 114 // this tab. Only used for collecting UMA metrics. |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 403 SkColor button_color_; | 406 SkColor button_color_; |
| 404 | 407 |
| 405 // As the majority of the tabs are inactive, and painting tabs is slowish, | 408 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 406 // we cache a handful of the inactive tab backgrounds here. | 409 // we cache a handful of the inactive tab backgrounds here. |
| 407 static ImageCache* image_cache_; | 410 static ImageCache* image_cache_; |
| 408 | 411 |
| 409 DISALLOW_COPY_AND_ASSIGN(Tab); | 412 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 410 }; | 413 }; |
| 411 | 414 |
| 412 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 415 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |