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

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

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // BaseTab overrides: 59 // BaseTab overrides:
60 virtual const gfx::Rect& GetTitleBounds() const; 60 virtual const gfx::Rect& GetTitleBounds() const;
61 virtual const gfx::Rect& GetIconBounds() const; 61 virtual const gfx::Rect& GetIconBounds() const;
62 virtual void DataChanged(const TabRendererData& old); 62 virtual void DataChanged(const TabRendererData& old);
63 63
64 private: 64 private:
65 // Overridden from views::View: 65 // Overridden from views::View:
66 virtual void OnPaint(gfx::Canvas* canvas); 66 virtual void OnPaint(gfx::Canvas* canvas);
67 virtual void Layout(); 67 virtual void Layout();
68 virtual void OnThemeChanged(); 68 virtual void OnThemeChanged();
69 virtual std::string GetClassName() const { return kViewClassName; } 69 virtual std::string GetClassName() const;
70 virtual bool HasHitTestMask() const; 70 virtual bool HasHitTestMask() const;
71 virtual void GetHitTestMask(gfx::Path* path) const; 71 virtual void GetHitTestMask(gfx::Path* path) const;
72 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); 72 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin);
73 virtual void OnMouseMoved(const views::MouseEvent& event); 73 virtual void OnMouseMoved(const views::MouseEvent& event);
74 74
75 // Paint various portions of the Tab 75 // Paint various portions of the Tab
76 void PaintTabBackground(gfx::Canvas* canvas); 76 void PaintTabBackground(gfx::Canvas* canvas);
77 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); 77 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas);
78 void PaintInactiveTabBackground(gfx::Canvas* canvas); 78 void PaintInactiveTabBackground(gfx::Canvas* canvas);
79 void PaintActiveTabBackground(gfx::Canvas* canvas); 79 void PaintActiveTabBackground(gfx::Canvas* canvas);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // The current color of the close button. 136 // The current color of the close button.
137 SkColor close_button_color_; 137 SkColor close_button_color_;
138 138
139 static bool initialized_; 139 static bool initialized_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(Tab); 141 DISALLOW_COPY_AND_ASSIGN(Tab);
142 }; 142 };
143 143
144 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 144 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698