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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate_browsertest.cc

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
« no previous file with comments | « base/i18n/rtl.h ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_tabstrip.h" 8 #include "chrome/browser/ui/browser_tabstrip.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 MockAutofillManagerDelegate() {} 33 MockAutofillManagerDelegate() {}
34 virtual ~MockAutofillManagerDelegate() {} 34 virtual ~MockAutofillManagerDelegate() {}
35 35
36 virtual PrefService* GetPrefs() { return &prefs_; } 36 virtual PrefService* GetPrefs() { return &prefs_; }
37 37
38 user_prefs::PrefRegistrySyncable* GetPrefRegistry() { 38 user_prefs::PrefRegistrySyncable* GetPrefRegistry() {
39 return prefs_.registry(); 39 return prefs_.registry();
40 } 40 }
41 41
42 MOCK_METHOD6(ShowAutofillPopup, 42 MOCK_METHOD7(ShowAutofillPopup,
43 void(const gfx::RectF& element_bounds, 43 void(const gfx::RectF& element_bounds,
44 base::i18n::TextDirection text_direction,
44 const std::vector<string16>& values, 45 const std::vector<string16>& values,
45 const std::vector<string16>& labels, 46 const std::vector<string16>& labels,
46 const std::vector<string16>& icons, 47 const std::vector<string16>& icons,
47 const std::vector<int>& identifiers, 48 const std::vector<int>& identifiers,
48 base::WeakPtr<AutofillPopupDelegate> delegate)); 49 base::WeakPtr<AutofillPopupDelegate> delegate));
49 50
50 MOCK_METHOD0(HideAutofillPopup, void()); 51 MOCK_METHOD0(HideAutofillPopup, void());
51 52
52 private: 53 private:
53 TestingPrefServiceSyncable prefs_; 54 TestingPrefServiceSyncable prefs_;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 browser()->OpenURL(content::OpenURLParams( 154 browser()->OpenURL(content::OpenURLParams(
154 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), 155 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(),
155 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 156 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
156 browser()->OpenURL(content::OpenURLParams( 157 browser()->OpenURL(content::OpenURLParams(
157 GURL(chrome::kChromeUIAboutURL), content::Referrer(), 158 GURL(chrome::kChromeUIAboutURL), content::Referrer(),
158 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 159 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
159 observer.Wait(); 160 observer.Wait();
160 } 161 }
161 162
162 } // namespace autofill 163 } // namespace autofill
OLDNEW
« no previous file with comments | « base/i18n/rtl.h ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698