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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Rebase to master Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h " 5 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h "
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversion_utils.h" 13 #include "base/strings/utf_string_conversion_utils.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "chrome/browser/ui/autofill/password_generation_popup_observer.h" 15 #include "chrome/browser/ui/autofill/password_generation_popup_observer.h"
16 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" 16 #include "chrome/browser/ui/autofill/password_generation_popup_view.h"
17 #include "chrome/browser/ui/autofill/popup_constants.h" 17 #include "chrome/browser/ui/autofill/popup_constants.h"
18 #include "chrome/browser/ui/browser_finder.h" 18 #include "chrome/browser/ui/browser_finder.h"
19 #include "chrome/browser/ui/chrome_pages.h" 19 #include "chrome/browser/ui/chrome_pages.h"
20 #include "chrome/common/features.h"
21 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
22 #include "chrome/grit/chromium_strings.h" 21 #include "chrome/grit/chromium_strings.h"
23 #include "chrome/grit/generated_resources.h" 22 #include "chrome/grit/generated_resources.h"
24 #include "components/autofill/core/browser/password_generator.h" 23 #include "components/autofill/core/browser/password_generator.h"
25 #include "components/autofill/core/browser/suggestion.h" 24 #include "components/autofill/core/browser/suggestion.h"
26 #include "components/password_manager/core/browser/password_bubble_experiment.h" 25 #include "components/password_manager/core/browser/password_bubble_experiment.h"
27 #include "components/password_manager/core/browser/password_manager.h" 26 #include "components/password_manager/core/browser/password_manager.h"
28 #include "content/public/browser/native_web_keyboard_event.h" 27 #include "content/public/browser/native_web_keyboard_event.h"
29 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
30 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
31 #include "ui/base/l10n/l10n_util.h" 30 #include "ui/base/l10n/l10n_util.h"
32 #include "ui/events/keycodes/keyboard_codes.h" 31 #include "ui/events/keycodes/keyboard_codes.h"
33 #include "ui/gfx/geometry/rect_conversions.h" 32 #include "ui/gfx/geometry/rect_conversions.h"
34 #include "ui/gfx/text_utils.h" 33 #include "ui/gfx/text_utils.h"
35 34
36 #if BUILDFLAG(ANDROID_JAVA_UI) 35 #if defined(OS_ANDROID)
37 #include "chrome/browser/android/chrome_application.h" 36 #include "chrome/browser/android/chrome_application.h"
38 #endif 37 #endif
39 38
40 namespace autofill { 39 namespace autofill {
41 40
42 base::WeakPtr<PasswordGenerationPopupControllerImpl> 41 base::WeakPtr<PasswordGenerationPopupControllerImpl>
43 PasswordGenerationPopupControllerImpl::GetOrCreate( 42 PasswordGenerationPopupControllerImpl::GetOrCreate(
44 base::WeakPtr<PasswordGenerationPopupControllerImpl> previous, 43 base::WeakPtr<PasswordGenerationPopupControllerImpl> previous,
45 const gfx::RectF& bounds, 44 const gfx::RectF& bounds,
46 const PasswordForm& form, 45 const PasswordForm& form,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 delete this; 215 delete this;
217 } 216 }
218 217
219 void PasswordGenerationPopupControllerImpl::ViewDestroyed() { 218 void PasswordGenerationPopupControllerImpl::ViewDestroyed() {
220 view_ = NULL; 219 view_ = NULL;
221 220
222 Hide(); 221 Hide();
223 } 222 }
224 223
225 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() { 224 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() {
226 #if BUILDFLAG(ANDROID_JAVA_UI) 225 #if defined(OS_ANDROID)
227 chrome::android::ChromeApplication::ShowPasswordSettings(); 226 chrome::android::ChromeApplication::ShowPasswordSettings();
228 #else 227 #else
229 chrome::ShowSettingsSubPage( 228 chrome::ShowSettingsSubPage(
230 chrome::FindBrowserWithWebContents(controller_common_.web_contents()), 229 chrome::FindBrowserWithWebContents(controller_common_.web_contents()),
231 chrome::kPasswordManagerSubPage); 230 chrome::kPasswordManagerSubPage);
232 #endif 231 #endif
233 } 232 }
234 233
235 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint( 234 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint(
236 const gfx::Point& point) { 235 const gfx::Point& point) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 300
302 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() { 301 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() {
303 return help_text_; 302 return help_text_;
304 } 303 }
305 304
306 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() { 305 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() {
307 return link_range_; 306 return link_range_;
308 } 307 }
309 308
310 } // namespace autofill 309 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/credit_card_scanner_view.cc ('k') | chrome/browser/ui/blocked_content/popup_blocker_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698