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 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
10 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view
.h" | 10 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view
.h" |
11 | 11 |
12 class ManagePasswordsIconViews; | |
13 | |
14 namespace content { | 12 namespace content { |
15 class WebContents; | 13 class WebContents; |
16 } | 14 } |
17 | 15 |
18 // The ManagePasswordsBubbleView controls the contents of the bubble which | 16 // The ManagePasswordsBubbleView controls the contents of the bubble which |
19 // pops up when Chrome offers to save a user's password, or when the user | 17 // pops up when Chrome offers to save a user's password, or when the user |
20 // interacts with the Omnibox icon. It has two distinct states: | 18 // interacts with the Omnibox icon. It has two distinct states: |
21 // | 19 // |
22 // 1. PendingView: Offers the user the possibility of saving credentials. | 20 // 1. PendingView: Offers the user the possibility of saving credentials. |
23 // 2. ManageView: Displays the current page's saved credentials. | 21 // 2. ManageView: Displays the current page's saved credentials. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ManagePasswordsBubbleModel model_; | 98 ManagePasswordsBubbleModel model_; |
101 | 99 |
102 views::View* initially_focused_view_; | 100 views::View* initially_focused_view_; |
103 | 101 |
104 std::unique_ptr<WebContentMouseHandler> mouse_handler_; | 102 std::unique_ptr<WebContentMouseHandler> mouse_handler_; |
105 | 103 |
106 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 104 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
107 }; | 105 }; |
108 | 106 |
109 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 107 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
OLD | NEW |