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

Unified Diff: ash/ime/candidate_window_view.cc

Issue 680153002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ime/candidate_window_view.h ('k') | ash/ime/candidate_window_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime/candidate_window_view.cc
diff --git a/ash/ime/candidate_window_view.cc b/ash/ime/candidate_window_view.cc
index af71647c7630d80ed751d6b645e73a18ee37d464..66b54d5852fd11cbc58a4a35fb7e38e2840d7a86 100644
--- a/ash/ime/candidate_window_view.cc
+++ b/ash/ime/candidate_window_view.cc
@@ -35,14 +35,14 @@ class CandidateWindowBorder : public views::BubbleBorder {
offset_(0) {
set_paint_arrow(views::BubbleBorder::PAINT_NONE);
}
- virtual ~CandidateWindowBorder() {}
+ ~CandidateWindowBorder() override {}
void set_offset(int offset) { offset_ = offset; }
private:
// Overridden from views::BubbleBorder:
- virtual gfx::Rect GetBounds(const gfx::Rect& anchor_rect,
- const gfx::Size& content_size) const override {
+ gfx::Rect GetBounds(const gfx::Rect& anchor_rect,
+ const gfx::Size& content_size) const override {
gfx::Rect bounds(content_size);
bounds.set_origin(gfx::Point(
anchor_rect.x() - offset_,
@@ -62,9 +62,7 @@ class CandidateWindowBorder : public views::BubbleBorder {
return bounds;
}
- virtual gfx::Insets GetInsets() const override {
- return gfx::Insets();
- }
+ gfx::Insets GetInsets() const override { return gfx::Insets(); }
gfx::NativeView parent_;
int offset_;
@@ -130,7 +128,7 @@ class InformationTextArea : public views::View {
}
protected:
- virtual gfx::Size GetPreferredSize() const override {
+ gfx::Size GetPreferredSize() const override {
gfx::Size size = views::View::GetPreferredSize();
size.SetToMax(gfx::Size(min_width_, 0));
return size;
« no previous file with comments | « ash/ime/candidate_window_view.h ('k') | ash/ime/candidate_window_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698