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

Side by Side Diff: components/autofill/browser/autofill_manager_delegate.h

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile Created 7 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/i18n/rtl.h"
11 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
12 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
13 14
14 namespace content { 15 namespace content {
15 struct PasswordForm; 16 struct PasswordForm;
16 struct SSLStatus; 17 struct SSLStatus;
17 } 18 }
18 19
19 namespace gfx { 20 namespace gfx {
20 class Rect; 21 class Rect;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const std::string&)>& callback) = 0; 110 const std::string&)>& callback) = 0;
110 111
111 // Hide the Autocheckout bubble if one is currently showing. 112 // Hide the Autocheckout bubble if one is currently showing.
112 virtual void HideAutocheckoutBubble() = 0; 113 virtual void HideAutocheckoutBubble() = 0;
113 114
114 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and 115 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and
115 // |identifiers| for the element at |element_bounds|. |delegate| will be 116 // |identifiers| for the element at |element_bounds|. |delegate| will be
116 // notified of popup events. 117 // notified of popup events.
117 virtual void ShowAutofillPopup( 118 virtual void ShowAutofillPopup(
118 const gfx::RectF& element_bounds, 119 const gfx::RectF& element_bounds,
120 base::i18n::TextDirection text_direction,
119 const std::vector<base::string16>& values, 121 const std::vector<base::string16>& values,
120 const std::vector<base::string16>& labels, 122 const std::vector<base::string16>& labels,
121 const std::vector<base::string16>& icons, 123 const std::vector<base::string16>& icons,
122 const std::vector<int>& identifiers, 124 const std::vector<int>& identifiers,
123 base::WeakPtr<AutofillPopupDelegate> delegate) = 0; 125 base::WeakPtr<AutofillPopupDelegate> delegate) = 0;
124 126
125 // Hide the Autofill popup if one is currently showing. 127 // Hide the Autofill popup if one is currently showing.
126 virtual void HideAutofillPopup() = 0; 128 virtual void HideAutofillPopup() = 0;
127 129
128 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0]. 130 // Updates the Autocheckout progress bar. |value| must be in [0.0, 1.0].
129 virtual void UpdateProgressBar(double value) = 0; 131 virtual void UpdateProgressBar(double value) = 0;
130 }; 132 };
131 133
132 } // namespace autofill 134 } // namespace autofill
133 135
134 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_ 136 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698