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 #ifndef CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ |
6 #define CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ | 6 #define CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/tabs/tab_strip_model_observer.h" | 10 #include "chrome/browser/tabs/tab_strip_model_observer.h" |
11 #include "chrome/test/test_navigation_observer.h" | 11 #include "chrome/test/base/test_navigation_observer.h" |
12 | 12 |
13 class TabStripModel; | 13 class TabStripModel; |
14 | 14 |
15 // In order to support testing of print preview, we need to wait for the | 15 // In order to support testing of print preview, we need to wait for the |
16 // constrained window to block the current tab, and then observe notifications | 16 // constrained window to block the current tab, and then observe notifications |
17 // on the newly added tab's controller to wait for it to be loaded. | 17 // on the newly added tab's controller to wait for it to be loaded. |
18 // To support tests registering javascript WebUI handlers, we need to inject | 18 // To support tests registering javascript WebUI handlers, we need to inject |
19 // the framework & registration javascript before the webui page loads by | 19 // the framework & registration javascript before the webui page loads by |
20 // calling back through the TestTabStripModelObserver::LoadStartObserver when | 20 // calling back through the TestTabStripModelObserver::LoadStartObserver when |
21 // the new page starts loading. | 21 // the new page starts loading. |
(...skipping 16 matching lines...) Expand all Loading... |
38 int index) OVERRIDE; | 38 int index) OVERRIDE; |
39 | 39 |
40 // |tab_strip_model_| is the object this observes. The constructor will | 40 // |tab_strip_model_| is the object this observes. The constructor will |
41 // register this as an observer, and the destructor will remove the observer. | 41 // register this as an observer, and the destructor will remove the observer. |
42 TabStripModel* tab_strip_model_; | 42 TabStripModel* tab_strip_model_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelObserver); | 44 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelObserver); |
45 }; | 45 }; |
46 | 46 |
47 #endif // CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ | 47 #endif // CHROME_TEST_BASE_TEST_TAB_STRIP_MODEL_OBSERVER_H_ |
OLD | NEW |