OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 namespace { | 28 namespace { |
29 | 29 |
30 class MockAutofillManagerDelegate | 30 class MockAutofillManagerDelegate |
31 : public autofill::TestAutofillManagerDelegate { | 31 : public autofill::TestAutofillManagerDelegate { |
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 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_METHOD6(ShowAutofillPopup, |
43 void(const gfx::RectF& element_bounds, | 43 void(const gfx::RectF& element_bounds, |
44 const std::vector<string16>& values, | 44 const std::vector<string16>& values, |
45 const std::vector<string16>& labels, | 45 const std::vector<string16>& labels, |
46 const std::vector<string16>& icons, | 46 const std::vector<string16>& icons, |
47 const std::vector<int>& identifiers, | 47 const std::vector<int>& identifiers, |
48 base::WeakPtr<AutofillPopupDelegate> delegate)); | 48 base::WeakPtr<AutofillPopupDelegate> delegate)); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 browser()->OpenURL(content::OpenURLParams( | 152 browser()->OpenURL(content::OpenURLParams( |
153 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), | 153 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), |
154 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 154 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
155 browser()->OpenURL(content::OpenURLParams( | 155 browser()->OpenURL(content::OpenURLParams( |
156 GURL(chrome::kChromeUIAboutURL), content::Referrer(), | 156 GURL(chrome::kChromeUIAboutURL), content::Referrer(), |
157 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 157 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
158 observer.Wait(); | 158 observer.Wait(); |
159 } | 159 } |
160 | 160 |
161 } // namespace autofill | 161 } // namespace autofill |
OLD | NEW |