| 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 18 matching lines...) Expand all Loading... |
| 29 // Overridden from LocationBar: | 29 // Overridden from LocationBar: |
| 30 virtual void ShowFirstRunBubble() {} | 30 virtual void ShowFirstRunBubble() {} |
| 31 virtual std::wstring GetInputString() const { return input_string_; } | 31 virtual std::wstring GetInputString() const { return input_string_; } |
| 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 FocusLocation() {} | 37 virtual void FocusLocation() {} |
| 38 virtual void FocusSearch() {} | 38 virtual void FocusSearch() {} |
| 39 virtual void UpdateFeedIcon() {} |
| 39 virtual void SaveStateToContents(TabContents* contents) {} | 40 virtual void SaveStateToContents(TabContents* contents) {} |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 | 43 |
| 43 // Test-supplied values that will be returned through the LocationBar | 44 // Test-supplied values that will be returned through the LocationBar |
| 44 // interface. | 45 // interface. |
| 45 std::wstring input_string_; | 46 std::wstring input_string_; |
| 46 WindowOpenDisposition disposition_; | 47 WindowOpenDisposition disposition_; |
| 47 PageTransition::Type transition_; | 48 PageTransition::Type transition_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); | 50 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 | 53 |
| 53 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ | 54 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ |
| OLD | NEW |