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 #ifndef CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ |
6 #define CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ | 6 #define CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/ui/omnibox/location_bar.h" | 10 #include "chrome/browser/ui/omnibox/location_bar.h" |
11 #include "content/public/common/page_transition_types.h" | 11 #include "content/public/common/page_transition_types.h" |
12 #include "webkit/glue/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
13 | 13 |
14 class TestLocationBar : public LocationBar { | 14 class TestLocationBar : public LocationBar { |
15 public: | 15 public: |
16 TestLocationBar(); | 16 TestLocationBar(); |
17 virtual ~TestLocationBar(); | 17 virtual ~TestLocationBar(); |
18 | 18 |
19 void set_input_string(const string16& input_string) { | 19 void set_input_string(const string16& input_string) { |
20 input_string_ = input_string; | 20 input_string_ = input_string; |
21 } | 21 } |
22 void set_disposition(WindowOpenDisposition disposition) { | 22 void set_disposition(WindowOpenDisposition disposition) { |
(...skipping 30 matching lines...) Expand all Loading... |
53 // interface. | 53 // interface. |
54 string16 input_string_; | 54 string16 input_string_; |
55 WindowOpenDisposition disposition_; | 55 WindowOpenDisposition disposition_; |
56 content::PageTransition transition_; | 56 content::PageTransition transition_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); | 58 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); |
59 }; | 59 }; |
60 | 60 |
61 | 61 |
62 #endif // CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ | 62 #endif // CHROME_TEST_BASE_TEST_LOCATION_BAR_H_ |
OLD | NEW |