| 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_model.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 9 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view
.h" | 9 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view
.h" |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ManagePasswordsBubbleView(content::WebContents* web_contents, | 66 ManagePasswordsBubbleView(content::WebContents* web_contents, |
| 67 ManagePasswordsIconViews* anchor_view, | 67 ManagePasswordsIconViews* anchor_view, |
| 68 ManagePasswordsBubbleModel::DisplayReason reason); | 68 ManagePasswordsBubbleModel::DisplayReason reason); |
| 69 ~ManagePasswordsBubbleView() override; | 69 ~ManagePasswordsBubbleView() override; |
| 70 | 70 |
| 71 // LocationBarBubbleDelegateView: | 71 // LocationBarBubbleDelegateView: |
| 72 views::View* GetInitiallyFocusedView() override; | 72 views::View* GetInitiallyFocusedView() override; |
| 73 void Init() override; | 73 void Init() override; |
| 74 void Close() override; | 74 void Close() override; |
| 75 | 75 |
| 76 // WidgetObserver: | |
| 77 void OnWidgetClosing(views::Widget* widget) override; | |
| 78 | |
| 79 // WidgetDelegate: | 76 // WidgetDelegate: |
| 80 bool ShouldShowCloseButton() const override; | 77 bool ShouldShowCloseButton() const override; |
| 81 | 78 |
| 82 // Refreshes the bubble's state: called to display a confirmation screen after | 79 // Refreshes the bubble's state: called to display a confirmation screen after |
| 83 // a user selects "Never for this site", for instance. | 80 // a user selects "Never for this site", for instance. |
| 84 void Refresh(); | 81 void Refresh(); |
| 85 | 82 |
| 86 void set_initially_focused_view(views::View* view) { | 83 void set_initially_focused_view(views::View* view) { |
| 87 DCHECK(!initially_focused_view_); | 84 DCHECK(!initially_focused_view_); |
| 88 initially_focused_view_ = view; | 85 initially_focused_view_ = view; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 103 | 100 |
| 104 views::View* initially_focused_view_; | 101 views::View* initially_focused_view_; |
| 105 | 102 |
| 106 // A helper to intercept mouse click events on the web contents. | 103 // A helper to intercept mouse click events on the web contents. |
| 107 scoped_ptr<WebContentMouseHandler> mouse_handler_; | 104 scoped_ptr<WebContentMouseHandler> mouse_handler_; |
| 108 | 105 |
| 109 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); | 106 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); |
| 110 }; | 107 }; |
| 111 | 108 |
| 112 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ | 109 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ |
| OLD | NEW |