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_passwords_bubble_view.h" | 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" |
7 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 12 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
12 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | |
13 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "chrome/browser/ui/views/passwords/credentials_item_view.h" | 14 #include "chrome/browser/ui/views/passwords/credentials_item_view.h" |
16 #include "chrome/browser/ui/views/passwords/credentials_selection_view.h" | 15 #include "chrome/browser/ui/views/passwords/credentials_selection_view.h" |
17 #include "chrome/browser/ui/views/passwords/manage_password_items_view.h" | 16 #include "chrome/browser/ui/views/passwords/manage_password_items_view.h" |
18 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_views.h" | 17 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_views.h" |
19 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
20 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
21 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
23 #include "ui/views/controls/button/blue_button.h" | 22 #include "ui/views/controls/button/blue_button.h" |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 AddChildView(new SaveConfirmationView(this)); | 1017 AddChildView(new SaveConfirmationView(this)); |
1019 } else if (model_.state() == password_manager::ui::CREDENTIAL_REQUEST_STATE) { | 1018 } else if (model_.state() == password_manager::ui::CREDENTIAL_REQUEST_STATE) { |
1020 AddChildView(new AccountChooserView(this)); | 1019 AddChildView(new AccountChooserView(this)); |
1021 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { | 1020 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { |
1022 AddChildView(new AutoSigninView(this)); | 1021 AddChildView(new AutoSigninView(this)); |
1023 } else { | 1022 } else { |
1024 AddChildView(new ManageView(this)); | 1023 AddChildView(new ManageView(this)); |
1025 } | 1024 } |
1026 GetLayoutManager()->Layout(this); | 1025 GetLayoutManager()->Layout(this); |
1027 } | 1026 } |
OLD | NEW |