| 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" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 ManagePasswordsBubbleModel* model() { return &model_; } | 55 ManagePasswordsBubbleModel* model() { return &model_; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 class AutoSigninView; | 58 class AutoSigninView; |
| 59 class BlacklistedView; | 59 class BlacklistedView; |
| 60 class ManageView; | 60 class ManageView; |
| 61 class PendingView; | 61 class PendingView; |
| 62 class SaveConfirmationView; | 62 class SaveConfirmationView; |
| 63 class UpdatePendingView; | 63 class UpdatePendingView; |
| 64 class WebContentMouseHandler; | |
| 65 | 64 |
| 66 ManagePasswordsBubbleView(content::WebContents* web_contents, | 65 ManagePasswordsBubbleView(content::WebContents* web_contents, |
| 67 views::View* anchor_view, | 66 views::View* anchor_view, |
| 68 DisplayReason reason); | 67 DisplayReason reason); |
| 69 ~ManagePasswordsBubbleView() override; | 68 ~ManagePasswordsBubbleView() override; |
| 70 | 69 |
| 71 // LocationBarBubbleDelegateView: | 70 // LocationBarBubbleDelegateView: |
| 72 views::View* GetInitiallyFocusedView() override; | 71 views::View* GetInitiallyFocusedView() override; |
| 73 void Init() override; | 72 void Init() override; |
| 74 void CloseBubble() override; | 73 void CloseBubble() override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 93 // be deleted when the bubble closes. | 92 // be deleted when the bubble closes. |
| 94 static ManagePasswordsBubbleView* manage_passwords_bubble_; | 93 static ManagePasswordsBubbleView* manage_passwords_bubble_; |
| 95 | 94 |
| 96 // The timeout in seconds for the auto sign-in toast. | 95 // The timeout in seconds for the auto sign-in toast. |
| 97 static int auto_signin_toast_timeout_; | 96 static int auto_signin_toast_timeout_; |
| 98 | 97 |
| 99 ManagePasswordsBubbleModel model_; | 98 ManagePasswordsBubbleModel model_; |
| 100 | 99 |
| 101 views::View* initially_focused_view_; | 100 views::View* initially_focused_view_; |
| 102 | 101 |
| 103 // A helper to intercept mouse click events on the web contents. | |
| 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 |