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

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

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gtk/sad_tab_gtk.cc ('k') | 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 9
10 #include "app/animation.h" 10 #include "app/animation.h"
11 #include "app/gfx/chrome_canvas.h" 11 #include "app/gfx/canvas.h"
12 #include "app/gfx/chrome_font.h" 12 #include "app/gfx/font.h"
13 #include "app/slide_animation.h" 13 #include "app/slide_animation.h"
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gfx/rect.h" 15 #include "base/gfx/rect.h"
16 #include "chrome/common/owned_widget_gtk.h" 16 #include "chrome/common/owned_widget_gtk.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 17 #include "third_party/skia/include/core/SkBitmap.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Size; 20 class Size;
21 } // namespace gfx 21 } // namespace gfx
22 22
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual void AnimationCanceled(const Animation* animation); 164 virtual void AnimationCanceled(const Animation* animation);
165 virtual void AnimationEnded(const Animation* animation); 165 virtual void AnimationEnded(const Animation* animation);
166 166
167 // Generates the bounds for the interior items of the tab. 167 // Generates the bounds for the interior items of the tab.
168 void Layout(); 168 void Layout();
169 169
170 // Returns the largest of the favicon, title text, and the close button. 170 // Returns the largest of the favicon, title text, and the close button.
171 static int GetContentHeight(); 171 static int GetContentHeight();
172 172
173 // Paint various portions of the Tab 173 // Paint various portions of the Tab
174 void PaintTabBackground(ChromeCanvasPaint* canvas); 174 void PaintTabBackground(gfx::CanvasPaint* canvas);
175 void PaintInactiveTabBackground(ChromeCanvasPaint* canvas); 175 void PaintInactiveTabBackground(gfx::CanvasPaint* canvas);
176 void PaintActiveTabBackground(ChromeCanvasPaint* canvas); 176 void PaintActiveTabBackground(gfx::CanvasPaint* canvas);
177 void PaintLoadingAnimation(ChromeCanvasPaint* canvas); 177 void PaintLoadingAnimation(gfx::CanvasPaint* canvas);
178 178
179 // Returns the number of favicon-size elements that can fit in the tab's 179 // Returns the number of favicon-size elements that can fit in the tab's
180 // current size. 180 // current size.
181 int IconCapacity() const; 181 int IconCapacity() const;
182 182
183 // Returns whether the Tab should display a favicon. 183 // Returns whether the Tab should display a favicon.
184 bool ShouldShowIcon() const; 184 bool ShouldShowIcon() const;
185 185
186 // Returns whether the Tab should display a close button. 186 // Returns whether the Tab should display a close button.
187 bool ShouldShowCloseBox() const; 187 bool ShouldShowCloseBox() const;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 LoadingAnimation loading_animation_; 247 LoadingAnimation loading_animation_;
248 248
249 // TODO(jhawkins): If the theme is changed after the tab is created, we'll 249 // TODO(jhawkins): If the theme is changed after the tab is created, we'll
250 // still render the old theme for this tab. 250 // still render the old theme for this tab.
251 ThemeProvider* theme_provider_; 251 ThemeProvider* theme_provider_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); 253 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk);
254 }; 254 };
255 255
256 #endif // CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_ 256 #endif // CHROME_BROWSER_GTK_TABS_TAB_RENDERER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/sad_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698