OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TEST_TEST_LOCATION_BAR_H_ | 5 #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ |
6 #define CHROME_TEST_TEST_LOCATION_BAR_H_ | 6 #define CHROME_TEST_TEST_LOCATION_BAR_H_ |
7 | 7 |
8 #include "chrome/browser/location_bar.h" | 8 #include "chrome/browser/location_bar.h" |
9 #include "chrome/common/page_transition_types.h" | 9 #include "chrome/common/page_transition_types.h" |
10 #include "webkit/glue/window_open_disposition.h" | 10 #include "webkit/glue/window_open_disposition.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual WindowOpenDisposition GetWindowOpenDisposition() const { | 32 virtual WindowOpenDisposition GetWindowOpenDisposition() const { |
33 return disposition_; | 33 return disposition_; |
34 } | 34 } |
35 virtual PageTransition::Type GetPageTransition() const { return transition_; } | 35 virtual PageTransition::Type GetPageTransition() const { return transition_; } |
36 virtual void AcceptInput() {} | 36 virtual void AcceptInput() {} |
37 virtual void AcceptInputWithDisposition(WindowOpenDisposition) {}; | 37 virtual void AcceptInputWithDisposition(WindowOpenDisposition) {}; |
38 virtual void FocusLocation() {} | 38 virtual void FocusLocation() {} |
39 virtual void FocusSearch() {} | 39 virtual void FocusSearch() {} |
40 virtual void UpdateFeedIcon() {} | 40 virtual void UpdateFeedIcon() {} |
41 virtual void SaveStateToContents(TabContents* contents) {} | 41 virtual void SaveStateToContents(TabContents* contents) {} |
| 42 virtual void Revert() {} |
42 | 43 |
43 private: | 44 private: |
44 | 45 |
45 // Test-supplied values that will be returned through the LocationBar | 46 // Test-supplied values that will be returned through the LocationBar |
46 // interface. | 47 // interface. |
47 std::wstring input_string_; | 48 std::wstring input_string_; |
48 WindowOpenDisposition disposition_; | 49 WindowOpenDisposition disposition_; |
49 PageTransition::Type transition_; | 50 PageTransition::Type transition_; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); | 52 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); |
52 }; | 53 }; |
53 | 54 |
54 | 55 |
55 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ | 56 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ |
OLD | NEW |