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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.h

Issue 512683003: Password bubble should close if user clicks on the web page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_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 "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/core/browser/password_manager_metrics_util .h" 10 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return best_matches_; 79 return best_matches_;
80 } 80 }
81 const base::string16& manage_link() const { return manage_link_; } 81 const base::string16& manage_link() const { return manage_link_; }
82 const base::string16& save_confirmation_text() const { 82 const base::string16& save_confirmation_text() const {
83 return save_confirmation_text_; 83 return save_confirmation_text_;
84 } 84 }
85 const gfx::Range& save_confirmation_link_range() const { 85 const gfx::Range& save_confirmation_link_range() const {
86 return save_confirmation_link_range_; 86 return save_confirmation_link_range_;
87 } 87 }
88 88
89 // Make the accessor public.
90 using WebContentsObserver::web_contents;
vabr (Chromium) 2014/08/27 16:43:05 Instead of making the whole accessor public, could
vasilii 2014/08/27 17:24:24 aura::Window* is a very strange type to return fro
vabr (Chromium) 2014/08/28 11:42:37 Why I don't like exposing the WebContents (WC :))
vasilii 2014/08/28 11:53:55 None of the solutions will work. ManagePasswordsBu
91
89 #if defined(UNIT_TEST) 92 #if defined(UNIT_TEST)
90 // Gets and sets the reason the bubble was displayed. 93 // Gets and sets the reason the bubble was displayed.
91 password_manager::metrics_util::UIDisplayDisposition display_disposition() 94 password_manager::metrics_util::UIDisplayDisposition display_disposition()
92 const { 95 const {
93 return display_disposition_; 96 return display_disposition_;
94 } 97 }
95 98
96 // Gets the reason the bubble was dismissed. 99 // Gets the reason the bubble was dismissed.
97 password_manager::metrics_util::UIDismissalReason dismissal_reason() const { 100 password_manager::metrics_util::UIDismissalReason dismissal_reason() const {
98 return dismissal_reason_; 101 return dismissal_reason_;
(...skipping 12 matching lines...) Expand all
111 base::string16 save_confirmation_text_; 114 base::string16 save_confirmation_text_;
112 gfx::Range save_confirmation_link_range_; 115 gfx::Range save_confirmation_link_range_;
113 116
114 password_manager::metrics_util::UIDisplayDisposition display_disposition_; 117 password_manager::metrics_util::UIDisplayDisposition display_disposition_;
115 password_manager::metrics_util::UIDismissalReason dismissal_reason_; 118 password_manager::metrics_util::UIDismissalReason dismissal_reason_;
116 119
117 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); 120 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel);
118 }; 121 };
119 122
120 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 123 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698