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

Side by Side Diff: ui/views/bubble/bubble_border.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/bubble/bubble_delegate.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 UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Get the border exterior thickness, including stroke and shadow, in pixels. 189 // Get the border exterior thickness, including stroke and shadow, in pixels.
190 int GetBorderThickness() const; 190 int GetBorderThickness() const;
191 191
192 // Returns the corner radius of the current image set. 192 // Returns the corner radius of the current image set.
193 int GetBorderCornerRadius() const; 193 int GetBorderCornerRadius() const;
194 194
195 // Gets the arrow offset to use. 195 // Gets the arrow offset to use.
196 int GetArrowOffset(const gfx::Size& border_size) const; 196 int GetArrowOffset(const gfx::Size& border_size) const;
197 197
198 // Overridden from Border: 198 // Overridden from Border:
199 virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE; 199 virtual void Paint(const View& view, gfx::Canvas* canvas) override;
200 virtual gfx::Insets GetInsets() const OVERRIDE; 200 virtual gfx::Insets GetInsets() const override;
201 virtual gfx::Size GetMinimumSize() const OVERRIDE; 201 virtual gfx::Size GetMinimumSize() const override;
202 202
203 private: 203 private:
204 FRIEND_TEST_ALL_PREFIXES(BubbleBorderTest, GetSizeForContentsSizeTest); 204 FRIEND_TEST_ALL_PREFIXES(BubbleBorderTest, GetSizeForContentsSizeTest);
205 FRIEND_TEST_ALL_PREFIXES(BubbleBorderTest, GetBoundsOriginTest); 205 FRIEND_TEST_ALL_PREFIXES(BubbleBorderTest, GetBoundsOriginTest);
206 206
207 // The border and arrow stroke size used in image assets, in pixels. 207 // The border and arrow stroke size used in image assets, in pixels.
208 static const int kStroke; 208 static const int kStroke;
209 209
210 gfx::Size GetSizeForContentsSize(const gfx::Size& contents_size) const; 210 gfx::Size GetSizeForContentsSize(const gfx::Size& contents_size) const;
211 gfx::ImageSkia* GetArrowImage() const; 211 gfx::ImageSkia* GetArrowImage() const;
(...skipping 14 matching lines...) Expand all
226 DISALLOW_COPY_AND_ASSIGN(BubbleBorder); 226 DISALLOW_COPY_AND_ASSIGN(BubbleBorder);
227 }; 227 };
228 228
229 // A Background that clips itself to the specified BubbleBorder and uses 229 // A Background that clips itself to the specified BubbleBorder and uses
230 // the background color of the BubbleBorder. 230 // the background color of the BubbleBorder.
231 class VIEWS_EXPORT BubbleBackground : public Background { 231 class VIEWS_EXPORT BubbleBackground : public Background {
232 public: 232 public:
233 explicit BubbleBackground(BubbleBorder* border) : border_(border) {} 233 explicit BubbleBackground(BubbleBorder* border) : border_(border) {}
234 234
235 // Overridden from Background: 235 // Overridden from Background:
236 virtual void Paint(gfx::Canvas* canvas, View* view) const OVERRIDE; 236 virtual void Paint(gfx::Canvas* canvas, View* view) const override;
237 237
238 private: 238 private:
239 BubbleBorder* border_; 239 BubbleBorder* border_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); 241 DISALLOW_COPY_AND_ASSIGN(BubbleBackground);
242 }; 242 };
243 243
244 } // namespace views 244 } // namespace views
245 245
246 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ 246 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_
OLDNEW
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698