Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h

Issue 2074913002: Enable the translate bubble to be dismissed when user ignores it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698