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

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

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
7 7
8 #include "base/timer/elapsed_timer.h" 8 #include "base/timer/elapsed_timer.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_state.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_state.h"
10 #include "chrome/browser/ui/passwords/passwords_client_ui_delegate.h" 10 #include "chrome/browser/ui/passwords/passwords_client_ui_delegate.h"
11 #include "chrome/browser/ui/passwords/passwords_model_delegate.h" 11 #include "chrome/browser/ui/passwords/passwords_model_delegate.h"
12 #include "chrome/common/features.h"
12 #include "components/password_manager/core/browser/password_store.h" 13 #include "components/password_manager/core/browser/password_store.h"
13 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
14 #include "content/public/browser/web_contents_user_data.h" 15 #include "content/public/browser/web_contents_user_data.h"
15 16
16 namespace content { 17 namespace content {
17 class WebContents; 18 class WebContents;
18 } 19 }
19 20
20 namespace password_manager { 21 namespace password_manager {
21 enum class CredentialType; 22 enum class CredentialType;
(...skipping 28 matching lines...) Expand all
50 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms) override; 51 void OnAutoSignin(ScopedVector<autofill::PasswordForm> local_forms) override;
51 void OnAutomaticPasswordSave( 52 void OnAutomaticPasswordSave(
52 scoped_ptr<password_manager::PasswordFormManager> form_manager) override; 53 scoped_ptr<password_manager::PasswordFormManager> form_manager) override;
53 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map, 54 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map,
54 const GURL& origin) override; 55 const GURL& origin) override;
55 56
56 // PasswordStore::Observer: 57 // PasswordStore::Observer:
57 void OnLoginsChanged( 58 void OnLoginsChanged(
58 const password_manager::PasswordStoreChangeList& changes) override; 59 const password_manager::PasswordStoreChangeList& changes) override;
59 60
60 #if !defined(OS_ANDROID) 61 #if !BUILDFLAG(ANDROID_JAVA_UI)
61 // Set the state of the Omnibox icon, and possibly show the associated bubble 62 // Set the state of the Omnibox icon, and possibly show the associated bubble
62 // without user interaction. 63 // without user interaction.
63 virtual void UpdateIconAndBubbleState(ManagePasswordsIconView* icon); 64 virtual void UpdateIconAndBubbleState(ManagePasswordsIconView* icon);
64 #endif 65 #endif
65 66
66 bool IsAutomaticallyOpeningBubble() const { return should_pop_up_bubble_; } 67 bool IsAutomaticallyOpeningBubble() const { return should_pop_up_bubble_; }
67 68
68 // PasswordsModelDelegate: 69 // PasswordsModelDelegate:
69 const GURL& GetOrigin() const override; 70 const GURL& GetOrigin() const override;
70 password_manager::ui::State GetState() const override; 71 password_manager::ui::State GetState() const override;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 scoped_ptr<base::ElapsedTimer> timer_; 140 scoped_ptr<base::ElapsedTimer> timer_;
140 141
141 // Contains true if the bubble is to be popped up in the next call to 142 // Contains true if the bubble is to be popped up in the next call to
142 // UpdateBubbleAndIconVisibility(). 143 // UpdateBubbleAndIconVisibility().
143 bool should_pop_up_bubble_; 144 bool should_pop_up_bubble_;
144 145
145 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 146 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
146 }; 147 };
147 148
148 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 149 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698