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

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

Issue 6693021: fav icon -> favicon. Pass 5: fav_icon -> favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.cc ('k') | chrome/browser/ui/views/tabs/base_tab.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void ShowContextMenuForView(views::View* source, 132 virtual void ShowContextMenuForView(views::View* source,
133 const gfx::Point& p, 133 const gfx::Point& p,
134 bool is_mouse_gesture) OVERRIDE; 134 bool is_mouse_gesture) OVERRIDE;
135 135
136 // Returns the bounds of the title and icon. 136 // Returns the bounds of the title and icon.
137 virtual const gfx::Rect& GetTitleBounds() const = 0; 137 virtual const gfx::Rect& GetTitleBounds() const = 0;
138 virtual const gfx::Rect& GetIconBounds() const = 0; 138 virtual const gfx::Rect& GetIconBounds() const = 0;
139 139
140 virtual int loading_animation_frame() const; 140 virtual int loading_animation_frame() const;
141 virtual bool should_display_crashed_favicon() const; 141 virtual bool should_display_crashed_favicon() const;
142 virtual int fav_icon_hiding_offset() const; 142 virtual int favicon_hiding_offset() const;
143 143
144 static gfx::Font* font() { return font_; } 144 static gfx::Font* font() { return font_; }
145 static int font_height() { return font_height_; } 145 static int font_height() { return font_height_; }
146 146
147 private: 147 private:
148 // The animation object used to swap the favicon with the sad tab icon. 148 // The animation object used to swap the favicon with the sad tab icon.
149 class FavIconCrashAnimation; 149 class FavIconCrashAnimation;
150 150
151 // Set the temporary offset for the favicon. This is used during the crash 151 // Set the temporary offset for the favicon. This is used during the crash
152 // animation. 152 // animation.
(...skipping 21 matching lines...) Expand all
174 TabRendererData data_; 174 TabRendererData data_;
175 175
176 // True if the tab is being animated closed. 176 // True if the tab is being animated closed.
177 bool closing_; 177 bool closing_;
178 178
179 // True if the tab is being dragged. 179 // True if the tab is being dragged.
180 bool dragging_; 180 bool dragging_;
181 181
182 // The offset used to animate the favicon location. This is used when the tab 182 // The offset used to animate the favicon location. This is used when the tab
183 // crashes. 183 // crashes.
184 int fav_icon_hiding_offset_; 184 int favicon_hiding_offset_;
185 185
186 // The current index of the loading animation. 186 // The current index of the loading animation.
187 int loading_animation_frame_; 187 int loading_animation_frame_;
188 188
189 bool should_display_crashed_favicon_; 189 bool should_display_crashed_favicon_;
190 190
191 // Pulse animation. 191 // Pulse animation.
192 scoped_ptr<ui::ThrobAnimation> pulse_animation_; 192 scoped_ptr<ui::ThrobAnimation> pulse_animation_;
193 193
194 // Hover animation. 194 // Hover animation.
(...skipping 13 matching lines...) Expand all
208 208
209 ui::ThemeProvider* theme_provider_; 209 ui::ThemeProvider* theme_provider_;
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
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.cc ('k') | chrome/browser/ui/views/tabs/base_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698