Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: chrome/test/base/test_tab_strip_model_observer.h

Issue 10537062: TabContentsWrapper -> TabContents, part 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiz Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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/ui/tabs/tab_strip_model_observer.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 // Observe the |tab_strip_model|, which may not be NULL. If 25 // Observe the |tab_strip_model|, which may not be NULL. If
26 // |load_start_observer| is non-NULL, notify when the page load starts. 26 // |load_start_observer| is non-NULL, notify when the page load starts.
27 TestTabStripModelObserver( 27 TestTabStripModelObserver(
28 TabStripModel* tab_strip_model, 28 TabStripModel* tab_strip_model,
29 content::JsInjectionReadyObserver* js_injection_ready_observer); 29 content::JsInjectionReadyObserver* js_injection_ready_observer);
30 virtual ~TestTabStripModelObserver(); 30 virtual ~TestTabStripModelObserver();
31 31
32 private: 32 private:
33 // Callback to observer the print preview tab associated with |contents|. 33 // Callback to observer the print preview tab associated with |contents|.
34 void ObservePrintPreviewTabContents(TabContentsWrapper* contents); 34 void ObservePrintPreviewTabContents(TabContents* contents);
35 35
36 // TabStripModelObserver: 36 // TabStripModelObserver:
37 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, 37 virtual void TabBlockedStateChanged(TabContents* contents,
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc ('k') | chrome/test/base/test_tab_strip_model_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698