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

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

Issue 2593273002: Replace TabStripTest.TabHitTestMaskWhenStacked with something more meaningful. (Closed)
Patch Set: Resync Created 3 years, 11 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_strip.h » ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // 167 //
168 // This returns the inverse (dx/dy instead of dy/dx) because we use exact 168 // This returns the inverse (dx/dy instead of dy/dx) because we use exact
169 // values for the vertical distances between points and then compute the 169 // values for the vertical distances between points and then compute the
170 // horizontal deltas from those. 170 // horizontal deltas from those.
171 static float GetInverseDiagonalSlope(); 171 static float GetInverseDiagonalSlope();
172 172
173 private: 173 private:
174 friend class AlertIndicatorButtonTest; 174 friend class AlertIndicatorButtonTest;
175 friend class TabTest; 175 friend class TabTest;
176 friend class TabStripTest; 176 friend class TabStripTest;
177 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
178 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); 177 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked);
179 178
180 // The animation object used to swap the favicon with the sad tab icon. 179 // The animation object used to swap the favicon with the sad tab icon.
181 class FaviconCrashAnimation; 180 class FaviconCrashAnimation;
182 181
183 class TabCloseButton; 182 class TabCloseButton;
184 class ThrobberView; 183 class ThrobberView;
185 184
186 // gfx::AnimationDelegate: 185 // gfx::AnimationDelegate:
187 void AnimationProgressed(const gfx::Animation* animation) override; 186 void AnimationProgressed(const gfx::Animation* animation) override;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 364
366 // The favicon for the tab. This might be the sad tab icon or a copy of 365 // The favicon for the tab. This might be the sad tab icon or a copy of
367 // data().favicon and may be modified for theming. It is created on demand 366 // data().favicon and may be modified for theming. It is created on demand
368 // and thus may be null. 367 // and thus may be null.
369 gfx::ImageSkia favicon_; 368 gfx::ImageSkia favicon_;
370 369
371 DISALLOW_COPY_AND_ASSIGN(Tab); 370 DISALLOW_COPY_AND_ASSIGN(Tab);
372 }; 371 };
373 372
374 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 373 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698