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

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

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/tabs/base_tab.cc ('k') | chrome/browser/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_TABS_TAB_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 protected: 62 protected:
63 virtual const gfx::Rect& title_bounds() const { return title_bounds_; } 63 virtual const gfx::Rect& title_bounds() const { return title_bounds_; }
64 64
65 // BaseTab overrides: 65 // BaseTab overrides:
66 virtual void DataChanged(const TabRendererData& old); 66 virtual void DataChanged(const TabRendererData& old);
67 67
68 private: 68 private:
69 // Overridden from views::View: 69 // Overridden from views::View:
70 virtual void Paint(gfx::Canvas* canvas); 70 virtual void Paint(gfx::Canvas* canvas);
71 virtual void Layout(); 71 virtual void Layout();
72 virtual void ThemeChanged(); 72 virtual void OnThemeChanged();
73 virtual std::string GetClassName() const { return kViewClassName; } 73 virtual std::string GetClassName() const { return kViewClassName; }
74 virtual bool HasHitTestMask() const; 74 virtual bool HasHitTestMask() const;
75 virtual void GetHitTestMask(gfx::Path* path) const; 75 virtual void GetHitTestMask(gfx::Path* path) const;
76 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); 76 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin);
77 77
78 // Paint various portions of the Tab 78 // Paint various portions of the Tab
79 void PaintTabBackground(gfx::Canvas* canvas); 79 void PaintTabBackground(gfx::Canvas* canvas);
80 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); 80 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas);
81 void PaintInactiveTabBackground(gfx::Canvas* canvas); 81 void PaintInactiveTabBackground(gfx::Canvas* canvas);
82 void PaintActiveTabBackground(gfx::Canvas* canvas); 82 void PaintActiveTabBackground(gfx::Canvas* canvas);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // The current color of the close button. 132 // The current color of the close button.
133 SkColor close_button_color_; 133 SkColor close_button_color_;
134 134
135 static bool initialized_; 135 static bool initialized_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(Tab); 137 DISALLOW_COPY_AND_ASSIGN(Tab);
138 }; 138 };
139 139
140 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ 140 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/base_tab.cc ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698