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

Side by Side Diff: chrome/test/automation/tab_proxy.h

Issue 5977008: Revert 70142 - Fix build error (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 12 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" // NOLINT 9 #include "build/build_config.h" // NOLINT
10 10
(...skipping 30 matching lines...) Expand all
41 MEDIUM_FONT = 16, 41 MEDIUM_FONT = 16,
42 LARGE_FONT = 24, 42 LARGE_FONT = 24,
43 LARGEST_FONT = 36 43 LARGEST_FONT = 36
44 }; 44 };
45 45
46 class TabProxy : public AutomationResourceProxy, 46 class TabProxy : public AutomationResourceProxy,
47 public JavaScriptExecutionController { 47 public JavaScriptExecutionController {
48 public: 48 public:
49 class TabProxyDelegate { 49 class TabProxyDelegate {
50 public: 50 public:
51 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) { 51 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {}
52 return false;
53 }
54 virtual void OnChannelError(TabProxy* tab) {} 52 virtual void OnChannelError(TabProxy* tab) {}
55 53
56 protected: 54 protected:
57 virtual ~TabProxyDelegate() {} 55 virtual ~TabProxyDelegate() {}
58 }; 56 };
59 57
60 TabProxy(AutomationMessageSender* sender, 58 TabProxy(AutomationMessageSender* sender,
61 AutomationHandleTracker* tracker, 59 AutomationHandleTracker* tracker,
62 int handle); 60 int handle);
63 61
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // purposes. 423 // purposes.
426 void LastObjectRemoved(); 424 void LastObjectRemoved();
427 425
428 private: 426 private:
429 Lock list_lock_; // Protects the observers_list_. 427 Lock list_lock_; // Protects the observers_list_.
430 ObserverList<TabProxyDelegate> observers_list_; 428 ObserverList<TabProxyDelegate> observers_list_;
431 DISALLOW_COPY_AND_ASSIGN(TabProxy); 429 DISALLOW_COPY_AND_ASSIGN(TabProxy);
432 }; 430 };
433 431
434 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 432 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698