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

Unified Diff: chrome/browser/ui/views/tabs/tab_unittest.cc

Issue 2210033002: Proper rendering of stacked tabs for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_unittest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_unittest.cc b/chrome/browser/ui/views/tabs/tab_unittest.cc
index 5cfe9d1b8e9b9a2434857cf787e54b4bc3428b8e..cfd659e7f82012603fe442cd9ccf6c976738104c 100644
--- a/chrome/browser/ui/views/tabs/tab_unittest.cc
+++ b/chrome/browser/ui/views/tabs/tab_unittest.cc
@@ -39,6 +39,7 @@ class FakeTabController : public TabController {
bool ShouldHideCloseButtonForInactiveTabs() override {
return false;
}
+ bool MaySetClip() override { return false; }
void SelectTab(Tab* tab) override {}
void ExtendSelectionTo(Tab* tab) override {}
void ToggleSelected(Tab* tab) override {}
@@ -63,7 +64,12 @@ class FakeTabController : public TabController {
}
void OnMouseEventInTab(views::View* source,
const ui::MouseEvent& event) override {}
- bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) override { return true; }
+ bool ShouldPaintTab(
+ const Tab* tab,
+ const base::Callback<gfx::Path(const gfx::Size&)>& border_callback,
+ gfx::Path* clip) override {
+ return true;
+ }
bool CanPaintThrobberToLayer() const override {
return paint_throbber_to_layer_;
}
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698