| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 /////////////////////////////////////////////////////////////////////////////// | 45 /////////////////////////////////////////////////////////////////////////////// |
| 46 class Tab : public gfx::AnimationDelegate, | 46 class Tab : public gfx::AnimationDelegate, |
| 47 public views::ButtonListener, | 47 public views::ButtonListener, |
| 48 public views::ContextMenuController, | 48 public views::ContextMenuController, |
| 49 public views::MaskedTargeterDelegate, | 49 public views::MaskedTargeterDelegate, |
| 50 public views::View { | 50 public views::View { |
| 51 public: | 51 public: |
| 52 // The Tab's class name. | 52 // The Tab's class name. |
| 53 static const char kViewClassName[]; | 53 static const char kViewClassName[]; |
| 54 | 54 |
| 55 // The amount of overlap between two adjacent tabs. |
| 56 static constexpr int kOverlap = 16; |
| 57 |
| 55 Tab(TabController* controller, gfx::AnimationContainer* container); | 58 Tab(TabController* controller, gfx::AnimationContainer* container); |
| 56 ~Tab() override; | 59 ~Tab() override; |
| 57 | 60 |
| 58 TabController* controller() const { return controller_; } | 61 TabController* controller() const { return controller_; } |
| 59 | 62 |
| 60 // Used to set/check whether this Tab is being animated closed. | 63 // Used to set/check whether this Tab is being animated closed. |
| 61 void set_closing(bool closing) { closing_ = closing; } | 64 void set_closing(bool closing) { closing_ = closing; } |
| 62 bool closing() const { return closing_; } | 65 bool closing() const { return closing_; } |
| 63 | 66 |
| 64 // See description above field. | 67 // See description above field. |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 365 |
| 363 // The favicon for the tab. This might be the sad tab icon or a copy of | 366 // The favicon for the tab. This might be the sad tab icon or a copy of |
| 364 // data().favicon and may be modified for theming. It is created on demand | 367 // data().favicon and may be modified for theming. It is created on demand |
| 365 // and thus may be null. | 368 // and thus may be null. |
| 366 gfx::ImageSkia favicon_; | 369 gfx::ImageSkia favicon_; |
| 367 | 370 |
| 368 DISALLOW_COPY_AND_ASSIGN(Tab); | 371 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 369 }; | 372 }; |
| 370 | 373 |
| 371 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 374 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |