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

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

Issue 1354823002: Render the tab close button as a vector-based icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 void DisplayCrashedFavicon(); 273 void DisplayCrashedFavicon();
274 void ResetCrashedFavicon(); 274 void ResetCrashedFavicon();
275 275
276 void StopCrashAnimation(); 276 void StopCrashAnimation();
277 void StartCrashAnimation(); 277 void StartCrashAnimation();
278 278
279 // Returns true if the crash animation is currently running. 279 // Returns true if the crash animation is currently running.
280 bool IsPerformingCrashAnimation() const; 280 bool IsPerformingCrashAnimation() const;
281 281
282 // Sets the close button normal-state image using the current
283 // |close_button_color_|.
284 void SetCloseButtonNormalImage();
miu 2015/09/18 01:13:37 naming: When I was originally reading this, I was
Peter Kasting 2015/09/18 01:17:13 Neither of those names would be accurate, though.
miu 2015/09/19 00:19:58 It's a moot point now (at patch set 3), but back a
285
282 // Schedules repaint task for icon. 286 // Schedules repaint task for icon.
283 void ScheduleIconPaint(); 287 void ScheduleIconPaint();
284 288
285 // Returns a |path| containing the region that matches the bitmap display of 289 // Returns a |path| containing the region that matches the bitmap display of
286 // this tab, for input event hit testing. Set |include_top_shadow| to include 290 // this tab, for input event hit testing. Set |include_top_shadow| to include
287 // the mostly-transparent shadow pixels above the top edge of the tab in the 291 // the mostly-transparent shadow pixels above the top edge of the tab in the
288 // path. 292 // path.
289 void GetHitTestMaskHelper(bool include_top_shadow, gfx::Path* path) const; 293 void GetHitTestMaskHelper(bool include_top_shadow, gfx::Path* path) const;
290 294
291 // Returns the rectangle for the light bar in immersive mode. 295 // Returns the rectangle for the light bar in immersive mode.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 SkColor close_button_color_; 403 SkColor close_button_color_;
400 404
401 // As the majority of the tabs are inactive, and painting tabs is slowish, 405 // As the majority of the tabs are inactive, and painting tabs is slowish,
402 // we cache a handful of the inactive tab backgrounds here. 406 // we cache a handful of the inactive tab backgrounds here.
403 static ImageCache* image_cache_; 407 static ImageCache* image_cache_;
404 408
405 DISALLOW_COPY_AND_ASSIGN(Tab); 409 DISALLOW_COPY_AND_ASSIGN(Tab);
406 }; 410 };
407 411
408 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 412 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698