Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.h

Issue 179003: Add a fast path for tab strip expose. (Closed)
Patch Set: comment Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_GTK_TABS_TAB_RENDERER_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void CloseButtonClicked(); 132 virtual void CloseButtonClicked();
133 133
134 // Sets the bounds of the tab. 134 // Sets the bounds of the tab.
135 virtual void SetBounds(const gfx::Rect& bounds); 135 virtual void SetBounds(const gfx::Rect& bounds);
136 136
137 // Advance the loading animation to the next frame, or hide the animation if 137 // Advance the loading animation to the next frame, or hide the animation if
138 // the tab isn't loading. Returns |true| if the icon area needs to be 138 // the tab isn't loading. Returns |true| if the icon area needs to be
139 // repainted. 139 // repainted.
140 bool ValidateLoadingAnimation(AnimationState animation_state); 140 bool ValidateLoadingAnimation(AnimationState animation_state);
141 141
142 // Repaint only the area of the tab that contains the favicon.
143 void PaintFavIconArea(GdkEventExpose* event);
144
142 // Returns the minimum possible size of a single unselected Tab. 145 // Returns the minimum possible size of a single unselected Tab.
143 static gfx::Size GetMinimumUnselectedSize(); 146 static gfx::Size GetMinimumUnselectedSize();
144 // Returns the minimum possible size of a selected Tab. Selected tabs must 147 // Returns the minimum possible size of a selected Tab. Selected tabs must
145 // always show a close button and have a larger minimum size than unselected 148 // always show a close button and have a larger minimum size than unselected
146 // tabs. 149 // tabs.
147 static gfx::Size GetMinimumSelectedSize(); 150 static gfx::Size GetMinimumSelectedSize();
148 // Returns the preferred size of a single Tab, assuming space is 151 // Returns the preferred size of a single Tab, assuming space is
149 // available. 152 // available.
150 static gfx::Size GetStandardSize(); 153 static gfx::Size GetStandardSize();
151 154
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // The close button. 379 // The close button.
377 scoped_ptr<CustomDrawButton> close_button_; 380 scoped_ptr<CustomDrawButton> close_button_;
378 381
379 // The current color of the close button. 382 // The current color of the close button.
380 SkColor close_button_color_; 383 SkColor close_button_color_;
381 384
382 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); 385 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk);
383 }; 386 };
384 387
385 #endif // CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_ 388 #endif // CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698