OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/base/test_location_bar.h" | 5 #include "chrome/test/base/test_location_bar.h" |
6 | 6 |
7 TestLocationBar::TestLocationBar() | 7 TestLocationBar::TestLocationBar() |
8 : disposition_(CURRENT_TAB), | 8 : disposition_(CURRENT_TAB), |
9 transition_(PageTransition::LINK) { | 9 transition_(content::PAGE_TRANSITION_LINK) { |
10 } | 10 } |
11 | 11 |
12 TestLocationBar::~TestLocationBar() {} | 12 TestLocationBar::~TestLocationBar() {} |
13 | 13 |
14 string16 TestLocationBar::GetInputString() const { | 14 string16 TestLocationBar::GetInputString() const { |
15 return input_string_; | 15 return input_string_; |
16 } | 16 } |
17 | 17 |
18 WindowOpenDisposition TestLocationBar::GetWindowOpenDisposition() const { | 18 WindowOpenDisposition TestLocationBar::GetWindowOpenDisposition() const { |
19 return disposition_; | 19 return disposition_; |
20 } | 20 } |
21 | 21 |
22 PageTransition::Type TestLocationBar::GetPageTransition() const { | 22 content::PageTransition TestLocationBar::GetPageTransition() const { |
23 return transition_; | 23 return transition_; |
24 } | 24 } |
25 | 25 |
26 const OmniboxView* TestLocationBar::location_entry() const { | 26 const OmniboxView* TestLocationBar::location_entry() const { |
27 return NULL; | 27 return NULL; |
28 } | 28 } |
29 | 29 |
30 OmniboxView* TestLocationBar::location_entry() { | 30 OmniboxView* TestLocationBar::location_entry() { |
31 return NULL; | 31 return NULL; |
32 } | 32 } |
33 | 33 |
34 LocationBarTesting* TestLocationBar::GetLocationBarForTesting() { | 34 LocationBarTesting* TestLocationBar::GetLocationBarForTesting() { |
35 return NULL; | 35 return NULL; |
36 } | 36 } |
OLD | NEW |