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

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

Issue 441683002: Add ManagePasswordsBubbleCocoa and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_bubble.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" 10 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 226 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
227 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 227 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
228 228
229 void set_initially_focused_view(views::View* view) { 229 void set_initially_focused_view(views::View* view) {
230 DCHECK(!initially_focused_view_); 230 DCHECK(!initially_focused_view_);
231 initially_focused_view_ = view; 231 initially_focused_view_ = view;
232 } 232 }
233 233
234 // Singleton instance of the Password bubble. The Password bubble can only be 234 // Singleton instance of the Password bubble. The Password bubble can only be
235 // shown on the active browser window, so there is no case in which it will be 235 // shown on the active browser window, so there is no case in which it will be
236 // shown twice at the same time. 236 // shown twice at the same time. The instance is owned by the Bubble and will
237 // be deleted when the bubble closes.
237 static ManagePasswordsBubbleView* manage_passwords_bubble_; 238 static ManagePasswordsBubbleView* manage_passwords_bubble_;
238 239
239 ManagePasswordsIconView* anchor_view_; 240 ManagePasswordsIconView* anchor_view_;
240 241
241 // If true upon destruction, the user has confirmed that she never wants to 242 // If true upon destruction, the user has confirmed that she never wants to
242 // save passwords for a particular site. 243 // save passwords for a particular site.
243 bool never_save_passwords_; 244 bool never_save_passwords_;
244 245
245 views::View* initially_focused_view_; 246 views::View* initially_focused_view_;
246 247
247 // Timer used to close the bubble after timeout. 248 // Timer used to close the bubble after timeout.
248 base::OneShotTimer<ManagePasswordsBubbleView> timer_; 249 base::OneShotTimer<ManagePasswordsBubbleView> timer_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView); 251 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleView);
251 }; 252 };
252 253
253 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_ 254 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_bubble.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698