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

Unified Diff: chrome/browser/ui/views/tabs/tab_controller.h

Issue 1424913008: Combine tab background image getter code into one place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@combine_tab_drawing
Patch Set: Created 5 years, 1 month 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.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_controller.h
diff --git a/chrome/browser/ui/views/tabs/tab_controller.h b/chrome/browser/ui/views/tabs/tab_controller.h
index 23de0380f145b6534e55a7aac4e55498bdfe502d..f8485e076699415564fd27eba21596bde403c9eb 100644
--- a/chrome/browser/ui/views/tabs/tab_controller.h
+++ b/chrome/browser/ui/views/tabs/tab_controller.h
@@ -96,6 +96,11 @@ class TabController {
// Returns true if tabs painted in the rectangular light-bar style.
virtual bool IsImmersiveStyle() const = 0;
+ // Returns the resource ID for the image to use as the tab background.
+ // |custom_image| is an outparam set to true if either the tab or the frame
+ // background images have been customized; see implementation comments.
+ virtual int GetBackgroundResourceId(bool* custom_image) const = 0;
+
// Adds private information to the tab's accessibility state.
virtual void UpdateTabAccessibilityState(const Tab* tab,
ui::AXViewState* state) = 0;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698