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

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

Issue 2118853002: Fix pixelation of tab borders when device scale changes (abandoned) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 4 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') | 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) 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // Paint with the normal tab style. If |clip| is non-empty, the tab border 234 // Paint with the normal tab style. If |clip| is non-empty, the tab border
235 // should be clipped against it. 235 // should be clipped against it.
236 void PaintTab(gfx::Canvas* canvas, const gfx::Path& clip); 236 void PaintTab(gfx::Canvas* canvas, const gfx::Path& clip);
237 237
238 // Paint with the "immersive mode" light-bar style. 238 // Paint with the "immersive mode" light-bar style.
239 void PaintImmersiveTab(gfx::Canvas* canvas); 239 void PaintImmersiveTab(gfx::Canvas* canvas);
240 240
241 // Paint various portions of the Tab. 241 // Paint various portions of the Tab.
242 void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip); 242 void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip);
243 void PaintTabBackgroundUsingFillId(gfx::Canvas* fill_canvas, 243 void PaintTabBackgroundUsingFillId(gfx::Canvas* canvas,
244 gfx::Canvas* stroke_canvas,
245 bool is_active, 244 bool is_active,
246 int fill_id, 245 int fill_id,
247 bool has_custom_image, 246 bool has_custom_image,
248 int y_offset); 247 int y_offset);
249 248
250 // Paints the pinned tab title changed indicator and |favicon_|. |favicon_| 249 // Paints the pinned tab title changed indicator and |favicon_|. |favicon_|
251 // may be null. |favicon_draw_bounds| is |favicon_bounds_| adjusted for rtl 250 // may be null. |favicon_draw_bounds| is |favicon_bounds_| adjusted for rtl
252 // and clipped to the bounds of the tab. 251 // and clipped to the bounds of the tab.
253 void PaintPinnedTabTitleChangedIndicatorAndIcon( 252 void PaintPinnedTabTitleChangedIndicatorAndIcon(
254 gfx::Canvas* canvas, 253 gfx::Canvas* canvas,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 363
365 // The favicon for the tab. This might be the sad tab icon or a copy of 364 // The favicon for the tab. This might be the sad tab icon or a copy of
366 // data().favicon and may be modified for theming. It is created on demand 365 // data().favicon and may be modified for theming. It is created on demand
367 // and thus may be null. 366 // and thus may be null.
368 gfx::ImageSkia favicon_; 367 gfx::ImageSkia favicon_;
369 368
370 DISALLOW_COPY_AND_ASSIGN(Tab); 369 DISALLOW_COPY_AND_ASSIGN(Tab);
371 }; 370 };
372 371
373 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 372 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698