Home | History | Annotate | Download | only in tabs

Lines Matching defs:Tab

5 #include "chrome/browser/ui/views/tabs/tab.h"
43 // Vertical adjustment to the favicon when the tab has a large icon.
46 // When a non-mini-tab becomes a mini-tab the width of the tab animates. If
47 // the width of a mini-tab is >= kMiniTabRendererAsNormalTabWidth then the tab
48 // is rendered as a normal tab. This is done to avoid having the title
49 // immediately disappear when transitioning a tab from normal to mini-tab.
63 Tab::TabImage Tab::tab_alpha_ = {0};
64 Tab::TabImage Tab::tab_active_ = {0};
65 Tab::TabImage Tab::tab_inactive_ = {0};
67 // Durations for the various parts of the mini tab title animation.
93 const char Tab::kViewClassName[] = "browser/tabs/Tab";
96 // Tab, public:
98 Tab::Tab(TabController* controller)
106 Tab::~Tab() {
109 void Tab::StartMiniTabTitleAnimation() {
132 void Tab::StopMiniTabTitleAnimation() {
138 gfx::Size Tab::GetMinimumUnselectedSize() {
150 gfx::Size Tab::GetMinimumSelectedSize() {
157 gfx::Size Tab::GetStandardSize() {
165 int Tab::GetMiniWidth() {
170 // Tab, protected:
172 const gfx::Rect& Tab::GetTitleBounds() const {
176 const gfx::Rect& Tab::GetIconBounds() const {
180 void Tab::DataChanged(const TabRendererData& old) {
191 // Tab, views::View overrides:
193 void Tab::OnPaint(gfx::Canvas* canvas) {
228 void Tab::Layout() {
234 // The height of the content of the Tab is the largest of the favicon,
250 // tab to a mini-tab.
271 // If the ratio of the close button size to tab width exceeds the maximum.
305 // Certain UI elements within the Tab (the favicon, etc.) are not represented
307 // are drawn directly on the canvas from within Tab::OnPaint(). The Tab's
308 // child Views (for example, the Tab's close button which is a views::Button
310 // views. The elements Tab draws directly on the canvas need to be manually
315 void Tab::OnThemeChanged() {
319 std::string Tab::GetClassName() const {
323 bool Tab::HasHitTestMask() const {
327 void Tab::GetHitTestMask(gfx::Path* path) const {
353 bool Tab::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin) {
359 void Tab::OnMouseMoved(const views::MouseEvent& event) {
367 // Tab, private
369 void Tab::PaintTabBackground(gfx::Canvas* canvas) {
390 void Tab::PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas) {
391 // Render the inactive tab background. We'll use this for clipping.
431 // Draw the tab background to the canvas.
444 void Tab::PaintInactiveTabBackground(gfx::Canvas* canvas) {
445 // The tab image needs to be lined up with the background image
446 // so that it feels partially transparent. These offsets represent the tab
466 // should be at the top of the tab. Otherwise, we assume that the background
477 // tab.
521 // Now draw the highlights/shadows around the tab edge.
532 void Tab::PaintActiveTabBackground(gfx::Canvas* canvas) {
566 // Now draw the highlights/shadows around the tab edge.
573 SkBitmap Tab::DrawHoverGlowBitmap(int width_input, int height_input) {
602 // If so, this results in default full tab glow behavior.
613 int Tab::IconCapacity() const {
619 bool Tab::ShouldShowIcon() const {
625 // The active tab clips favicon before close button.
632 bool Tab::ShouldShowCloseBox() const {
633 // The active tab never clips close button.
637 double Tab::GetThrobValue() {
652 // Tab, private:
655 void Tab::InitTabResources() {
662 // Load the tab images once now, and maybe again later if the theme changes.
667 void Tab::LoadTabImages() {
668 // We're not letting people override tab images just yet.