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

Side by Side Diff: chrome/browser/ui/views/tabs/base_tab.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2011 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_BASE_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" 11 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 ui::ThrobAnimation* pulse_animation() const { return pulse_animation_.get(); } 110 ui::ThrobAnimation* pulse_animation() const { return pulse_animation_.get(); }
111 111
112 // Returns the hover controller. 112 // Returns the hover controller.
113 views::GlowHoverController& hover_controller() { 113 views::GlowHoverController& hover_controller() {
114 return hover_controller_; 114 return hover_controller_;
115 } 115 }
116 116
117 views::ImageButton* close_button() const { return close_button_; } 117 views::ImageButton* close_button() const { return close_button_; }
118 118
119 // Paints the icon at the specified coordinates, mirrored for RTL if needed. 119 // Paints the icon at the specified coordinates, mirrored for RTL if needed.
120 void PaintIcon(gfx::Canvas* canvas); 120 void PaintIcon(gfx::CanvasSkia* canvas);
121 void PaintTitle(gfx::Canvas* canvas, SkColor title_color); 121 void PaintTitle(gfx::CanvasSkia* canvas, SkColor title_color);
122 122
123 // Overridden from AnimationDelegate: 123 // Overridden from AnimationDelegate:
124 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 124 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
125 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; 125 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE;
126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
127 127
128 // Overridden from views::ButtonListener: 128 // Overridden from views::ButtonListener:
129 virtual void ButtonPressed(views::Button* sender, 129 virtual void ButtonPressed(views::Button* sender,
130 const views::Event& event) OVERRIDE; 130 const views::Event& event) OVERRIDE;
131 131
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 views::GlowHoverController hover_controller_; 209 views::GlowHoverController hover_controller_;
210 210
211 static gfx::Font* font_; 211 static gfx::Font* font_;
212 static int font_height_; 212 static int font_height_;
213 213
214 DISALLOW_COPY_AND_ASSIGN(BaseTab); 214 DISALLOW_COPY_AND_ASSIGN(BaseTab);
215 }; 215 };
216 216
217 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ 217 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698