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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 <string> 9 #include <string>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Scale factor we're drawing it. 163 // Scale factor we're drawing it.
164 ui::ScaleFactor scale_factor; 164 ui::ScaleFactor scale_factor;
165 165
166 // The image. 166 // The image.
167 gfx::ImageSkia image; 167 gfx::ImageSkia image;
168 }; 168 };
169 169
170 typedef std::list<ImageCacheEntry> ImageCache; 170 typedef std::list<ImageCacheEntry> ImageCache;
171 171
172 // gfx::AnimationDelegate: 172 // gfx::AnimationDelegate:
173 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 173 virtual void AnimationProgressed(const gfx::Animation* animation) override;
174 virtual void AnimationCanceled(const gfx::Animation* animation) OVERRIDE; 174 virtual void AnimationCanceled(const gfx::Animation* animation) override;
175 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 175 virtual void AnimationEnded(const gfx::Animation* animation) override;
176 176
177 // views::ButtonListener: 177 // views::ButtonListener:
178 virtual void ButtonPressed(views::Button* sender, 178 virtual void ButtonPressed(views::Button* sender,
179 const ui::Event& event) OVERRIDE; 179 const ui::Event& event) override;
180 180
181 // views::ContextMenuController: 181 // views::ContextMenuController:
182 virtual void ShowContextMenuForView(views::View* source, 182 virtual void ShowContextMenuForView(views::View* source,
183 const gfx::Point& point, 183 const gfx::Point& point,
184 ui::MenuSourceType source_type) OVERRIDE; 184 ui::MenuSourceType source_type) override;
185 185
186 // views::MaskedTargeterDelegate: 186 // views::MaskedTargeterDelegate:
187 virtual bool GetHitTestMask(gfx::Path* mask) const OVERRIDE; 187 virtual bool GetHitTestMask(gfx::Path* mask) const override;
188 188
189 // views::View: 189 // views::View:
190 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 190 virtual void OnPaint(gfx::Canvas* canvas) override;
191 virtual void Layout() OVERRIDE; 191 virtual void Layout() override;
192 virtual void OnThemeChanged() OVERRIDE; 192 virtual void OnThemeChanged() override;
193 virtual const char* GetClassName() const OVERRIDE; 193 virtual const char* GetClassName() const override;
194 virtual bool GetTooltipText(const gfx::Point& p, 194 virtual bool GetTooltipText(const gfx::Point& p,
195 base::string16* tooltip) const OVERRIDE; 195 base::string16* tooltip) const override;
196 virtual bool GetTooltipTextOrigin(const gfx::Point& p, 196 virtual bool GetTooltipTextOrigin(const gfx::Point& p,
197 gfx::Point* origin) const OVERRIDE; 197 gfx::Point* origin) const override;
198 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 198 virtual bool OnMousePressed(const ui::MouseEvent& event) override;
199 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 199 virtual bool OnMouseDragged(const ui::MouseEvent& event) override;
200 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 200 virtual void OnMouseReleased(const ui::MouseEvent& event) override;
201 virtual void OnMouseCaptureLost() OVERRIDE; 201 virtual void OnMouseCaptureLost() override;
202 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 202 virtual void OnMouseEntered(const ui::MouseEvent& event) override;
203 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 203 virtual void OnMouseMoved(const ui::MouseEvent& event) override;
204 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 204 virtual void OnMouseExited(const ui::MouseEvent& event) override;
205 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 205 virtual void GetAccessibleState(ui::AXViewState* state) override;
206 206
207 // ui::EventHandler: 207 // ui::EventHandler:
208 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 208 virtual void OnGestureEvent(ui::GestureEvent* event) override;
209 209
210 // Invoked from Layout to adjust the position of the favicon or media 210 // Invoked from Layout to adjust the position of the favicon or media
211 // indicator for mini tabs. 211 // indicator for mini tabs.
212 void MaybeAdjustLeftForMiniTab(gfx::Rect* bounds) const; 212 void MaybeAdjustLeftForMiniTab(gfx::Rect* bounds) const;
213 213
214 // Invoked from SetData after |data_| has been updated to the new data. 214 // Invoked from SetData after |data_| has been updated to the new data.
215 void DataChanged(const TabRendererData& old); 215 void DataChanged(const TabRendererData& old);
216 216
217 // Paint with the normal tab style. 217 // Paint with the normal tab style.
218 void PaintTab(gfx::Canvas* canvas); 218 void PaintTab(gfx::Canvas* canvas);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 SkColor close_button_color_; 379 SkColor close_button_color_;
380 380
381 // As the majority of the tabs are inactive, and painting tabs is slowish, 381 // As the majority of the tabs are inactive, and painting tabs is slowish,
382 // we cache a handful of the inactive tab backgrounds here. 382 // we cache a handful of the inactive tab backgrounds here.
383 static ImageCache* image_cache_; 383 static ImageCache* image_cache_;
384 384
385 DISALLOW_COPY_AND_ASSIGN(Tab); 385 DISALLOW_COPY_AND_ASSIGN(Tab);
386 }; 386 };
387 387
388 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 388 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/media_indicator_button.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698