| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/passwords/manage_password_item_view.h" | 5 #include "chrome/browser/ui/views/passwords/manage_password_item_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 7 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 8 #include "components/password_manager/core/common/password_manager_ui.h" | 8 #include "components/password_manager/core/common/password_manager_ui.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/ui_resources.h" | |
| 11 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/resources/grit/ui_resources.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/controls/button/image_button.h" | 14 #include "ui/views/controls/button/image_button.h" |
| 15 #include "ui/views/layout/fill_layout.h" | 15 #include "ui/views/layout/fill_layout.h" |
| 16 #include "ui/views/layout/grid_layout.h" | 16 #include "ui/views/layout/grid_layout.h" |
| 17 #include "ui/views/layout/layout_constants.h" | 17 #include "ui/views/layout/layout_constants.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 enum FieldType { USERNAME_FIELD, PASSWORD_FIELD }; | 21 enum FieldType { USERNAME_FIELD, PASSWORD_FIELD }; |
| 22 | 22 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 void ManagePasswordItemView::NotifyClickedDelete() { | 244 void ManagePasswordItemView::NotifyClickedDelete() { |
| 245 delete_password_ = true; | 245 delete_password_ = true; |
| 246 Refresh(); | 246 Refresh(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 void ManagePasswordItemView::NotifyClickedUndo() { | 249 void ManagePasswordItemView::NotifyClickedUndo() { |
| 250 delete_password_ = false; | 250 delete_password_ = false; |
| 251 Refresh(); | 251 Refresh(); |
| 252 } | 252 } |
| OLD | NEW |