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

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: 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 <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // password credentials for the current site which are stored in 74 // password credentials for the current site which are stored in
75 // |password_form_map|. This stores a copy of |password_form_map| and shows 75 // |password_form_map|. This stores a copy of |password_form_map| and shows
76 // the manage password icon. 76 // the manage password icon.
77 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map, 77 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map,
78 const GURL& origin); 78 const GURL& origin);
79 79
80 // PasswordStore::Observer implementation. 80 // PasswordStore::Observer implementation.
81 void OnLoginsChanged( 81 void OnLoginsChanged(
82 const password_manager::PasswordStoreChangeList& changes) override; 82 const password_manager::PasswordStoreChangeList& changes) override;
83 83
84 #if !defined(OS_ANDROID) 84 #if !defined(ANDROID_JAVA_UI)
85 // Set the state of the Omnibox icon, and possibly show the associated bubble 85 // Set the state of the Omnibox icon, and possibly show the associated bubble
86 // without user interaction. 86 // without user interaction.
87 virtual void UpdateIconAndBubbleState(ManagePasswordsIconView* icon); 87 virtual void UpdateIconAndBubbleState(ManagePasswordsIconView* icon);
88 #endif 88 #endif
89 89
90 bool IsAutomaticallyOpeningBubble() const { return should_pop_up_bubble_; } 90 bool IsAutomaticallyOpeningBubble() const { return should_pop_up_bubble_; }
91 91
92 // PasswordsModelDelegate: 92 // PasswordsModelDelegate:
93 const GURL& GetOrigin() const override; 93 const GURL& GetOrigin() const override;
94 password_manager::ui::State GetState() const override; 94 password_manager::ui::State GetState() const override;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_ptr<base::ElapsedTimer> timer_; 170 scoped_ptr<base::ElapsedTimer> timer_;
171 171
172 // Contains true if the bubble is to be popped up in the next call to 172 // Contains true if the bubble is to be popped up in the next call to
173 // UpdateBubbleAndIconVisibility(). 173 // UpdateBubbleAndIconVisibility().
174 bool should_pop_up_bubble_; 174 bool should_pop_up_bubble_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 176 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
177 }; 177 };
178 178
179 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 179 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698