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

Side by Side Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_views. h" 5 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_views. h"
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" 8 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h"
9 #include "chrome/browser/ui/autofill/popup_constants.h" 9 #include "chrome/browser/ui/autofill/popup_constants.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 views::Label* password_label = 55 views::Label* password_label =
56 new views::Label(generated_password, font_list); 56 new views::Label(generated_password, font_list);
57 password_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); 57 password_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
58 password_label->SetEnabledColor( 58 password_label->SetEnabledColor(
59 PasswordGenerationPopupView::kPasswordTextColor); 59 PasswordGenerationPopupView::kPasswordTextColor);
60 AddChildView(password_label); 60 AddChildView(password_label);
61 } 61 }
62 62
63 // views::View: 63 // views::View:
64 virtual bool CanProcessEventsWithinSubtree() const OVERRIDE { 64 virtual bool CanProcessEventsWithinSubtree() const override {
65 // Send events to the parent view for handling. 65 // Send events to the parent view for handling.
66 return false; 66 return false;
67 } 67 }
68 68
69 private: 69 private:
70 DISALLOW_COPY_AND_ASSIGN(PasswordTextBox); 70 DISALLOW_COPY_AND_ASSIGN(PasswordTextBox);
71 }; 71 };
72 72
73 } // namespace 73 } // namespace
74 74
(...skipping 24 matching lines...) Expand all
99 ui::ResourceBundle::GetSharedInstance().GetImageNamed( 99 ui::ResourceBundle::GetSharedInstance().GetImageNamed(
100 IDR_GENERATE_PASSWORD_KEY).ToImageSkia()); 100 IDR_GENERATE_PASSWORD_KEY).ToImageSkia());
101 AddChildView(key_image); 101 AddChildView(key_image);
102 102
103 PasswordTextBox* password_text_box = new PasswordTextBox(); 103 PasswordTextBox* password_text_box = new PasswordTextBox();
104 password_text_box->Init(suggestion, password, font_list); 104 password_text_box->Init(suggestion, password, font_list);
105 AddChildView(password_text_box); 105 AddChildView(password_text_box);
106 } 106 }
107 107
108 // views::View: 108 // views::View:
109 virtual bool CanProcessEventsWithinSubtree() const OVERRIDE { 109 virtual bool CanProcessEventsWithinSubtree() const override {
110 // Send events to the parent view for handling. 110 // Send events to the parent view for handling.
111 return false; 111 return false;
112 } 112 }
113 113
114 private: 114 private:
115 DISALLOW_COPY_AND_ASSIGN(PasswordBox); 115 DISALLOW_COPY_AND_ASSIGN(PasswordBox);
116 }; 116 };
117 117
118 PasswordGenerationPopupViewViews::PasswordGenerationPopupViewViews( 118 PasswordGenerationPopupViewViews::PasswordGenerationPopupViewViews(
119 PasswordGenerationPopupController* controller, 119 PasswordGenerationPopupController* controller,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // If the top level widget can't be found, cancel the popup since we can't 266 // If the top level widget can't be found, cancel the popup since we can't
267 // fully set it up. 267 // fully set it up.
268 if (!observing_widget) 268 if (!observing_widget)
269 return NULL; 269 return NULL;
270 270
271 return new PasswordGenerationPopupViewViews(controller, observing_widget); 271 return new PasswordGenerationPopupViewViews(controller, observing_widget);
272 } 272 }
273 273
274 } // namespace autofill 274 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698