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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 }; 197 };
198 198
199 // Notifies when the tab count reaches the target number. 199 // Notifies when the tab count reaches the target number.
200 class TabCountChangeObserver : public TabStripModelObserver { 200 class TabCountChangeObserver : public TabStripModelObserver {
201 public: 201 public:
202 TabCountChangeObserver(AutomationProvider* automation, 202 TabCountChangeObserver(AutomationProvider* automation,
203 Browser* browser, 203 Browser* browser,
204 IPC::Message* reply_message, 204 IPC::Message* reply_message,
205 int target_tab_count); 205 int target_tab_count);
206 // Implementation of TabStripModelObserver. 206 // Implementation of TabStripModelObserver.
207 virtual void TabInsertedAt(TabContents* contents, 207 virtual void TabInsertedAt(TabContentsWrapper* contents,
208 int index, 208 int index,
209 bool foreground); 209 bool foreground);
210 virtual void TabDetachedAt(TabContents* contents, int index); 210 virtual void TabDetachedAt(TabContentsWrapper* contents, int index);
211 virtual void TabStripModelDeleted(); 211 virtual void TabStripModelDeleted();
212 212
213 private: 213 private:
214 ~TabCountChangeObserver(); 214 ~TabCountChangeObserver();
215 215
216 // Checks if the current tab count matches our target, and if so, 216 // Checks if the current tab count matches our target, and if so,
217 // sends the reply message and deletes self. 217 // sends the reply message and deletes self.
218 void CheckTabCount(); 218 void CheckTabCount();
219 219
220 AutomationProvider* automation_; 220 AutomationProvider* automation_;
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 private: 955 private:
956 AutomationJSONReply reply_; 956 AutomationJSONReply reply_;
957 BalloonCollection* collection_; 957 BalloonCollection* collection_;
958 int count_; 958 int count_;
959 959
960 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver); 960 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver);
961 }; 961 };
962 962
963 963
964 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 964 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698