| 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 "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
| 9 #include "chrome/browser/ui/views/managed_full_screen_bubble_delegate_view.h" | 9 #include "chrome/browser/ui/views/managed_full_screen_bubble_delegate_view.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 class WebContentMouseHandler; | 62 class WebContentMouseHandler; |
| 63 | 63 |
| 64 ManagePasswordsBubbleView(content::WebContents* web_contents, | 64 ManagePasswordsBubbleView(content::WebContents* web_contents, |
| 65 ManagePasswordsIconView* anchor_view, | 65 ManagePasswordsIconView* anchor_view, |
| 66 DisplayReason reason); | 66 DisplayReason reason); |
| 67 ~ManagePasswordsBubbleView() override; | 67 ~ManagePasswordsBubbleView() override; |
| 68 | 68 |
| 69 // ManagedFullScreenBubbleDelegateView: | 69 // ManagedFullScreenBubbleDelegateView: |
| 70 views::View* GetInitiallyFocusedView() override; | 70 views::View* GetInitiallyFocusedView() override; |
| 71 void Init() override; | 71 void Init() override; |
| 72 void WindowClosing() override; | |
| 73 void Close() override; | 72 void Close() override; |
| 74 | 73 |
| 74 // WidgetObserver: |
| 75 void OnWidgetClosing(views::Widget* widget) override; |
| 76 |
| 75 // Refreshes the bubble's state: called to display a confirmation screen after | 77 // Refreshes the bubble's state: called to display a confirmation screen after |
| 76 // a user selects "Never for this site", for instance. | 78 // a user selects "Never for this site", for instance. |
| 77 void Refresh(); | 79 void Refresh(); |
| 78 | 80 |
| 79 // Called from PendingView if the user clicks on "Never for this site" in | 81 // Called from PendingView if the user clicks on "Never for this site" in |
| 80 // order to display a confirmation screen. | 82 // order to display a confirmation screen. |
| 81 void NotifyNeverForThisSiteClicked(); | 83 void NotifyNeverForThisSiteClicked(); |
| 82 | 84 |
| 83 // Called from ConfirmNeverView if the user confirms her intention to never | 85 // Called from ConfirmNeverView if the user confirms her intention to never |
| 84 // save passwords, and remove existing passwords, for a site. | 86 // save passwords, and remove existing passwords, for a site. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 103 | 105 |
| 104 views::View* initially_focused_view_; | 106 views::View* initially_focused_view_; |
| 105 | 107 |
| 106 // A helper to intercept mouse click events on the web contents. | 108 // A helper to intercept mouse click events on the web contents. |
| 107 scoped_ptr<WebContentMouseHandler> mouse_handler_; | 109 scoped_ptr<WebContentMouseHandler> mouse_handler_; |
| 108 | 110 |
| 109 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 111 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
| 110 }; | 112 }; |
| 111 | 113 |
| 112 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 114 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
| OLD | NEW |