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

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

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/test/automation/browser_proxy.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // true if a navigation results in a login prompt, and if an attempted login 167 // true if a navigation results in a login prompt, and if an attempted login
168 // fails. 168 // fails.
169 // Note that this is only valid if you've done a navigation on this same 169 // Note that this is only valid if you've done a navigation on this same
170 // object; different TabProxy objects can refer to the same Tab. Calls 170 // object; different TabProxy objects can refer to the same Tab. Calls
171 // that can set this are NavigateToURL, GoBack, and GoForward. 171 // that can set this are NavigateToURL, GoBack, and GoForward.
172 // TODO(mpcomplete): we have no way of knowing if auth is needed after either 172 // TODO(mpcomplete): we have no way of knowing if auth is needed after either
173 // NavigateToURLAsync, or after appending a tab with an URL that triggers 173 // NavigateToURLAsync, or after appending a tab with an URL that triggers
174 // auth. 174 // auth.
175 bool NeedsAuth() const; 175 bool NeedsAuth() const;
176 176
177 // Fills |*is_visible| with whether the tab's download shelf is currently
178 // visible. The return value indicates success. On failure, |*is_visible| is
179 // unchanged.
180 bool IsShelfVisible(bool* is_visible);
181
182 // Starts a search within the current tab. The parameter |search_string| 177 // Starts a search within the current tab. The parameter |search_string|
183 // specifies what string to search for, |forward| specifies whether to search 178 // specifies what string to search for, |forward| specifies whether to search
184 // in forward direction, and |match_case| specifies case sensitivity 179 // in forward direction, and |match_case| specifies case sensitivity
185 // (true=case sensitive). |find_next| specifies whether this is a new search 180 // (true=case sensitive). |find_next| specifies whether this is a new search
186 // or a continuation of the old one. |ordinal| is an optional parameter that 181 // or a continuation of the old one. |ordinal| is an optional parameter that
187 // returns the ordinal of the active match (also known as "the 7" part of 182 // returns the ordinal of the active match (also known as "the 7" part of
188 // "7 of 9"). A return value of -1 indicates failure. 183 // "7 of 9"). A return value of -1 indicates failure.
189 int FindInPage(const std::wstring& search_string, FindInPageDirection forward, 184 int FindInPage(const std::wstring& search_string, FindInPageDirection forward,
190 FindInPageCase match_case, bool find_next, int* ordinal); 185 FindInPageCase match_case, bool find_next, int* ordinal);
191 186
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void OnMessageReceived(const IPC::Message& message); 311 void OnMessageReceived(const IPC::Message& message);
317 protected: 312 protected:
318 virtual ~TabProxy() {} 313 virtual ~TabProxy() {}
319 private: 314 private:
320 Lock list_lock_; // Protects the observers_list_. 315 Lock list_lock_; // Protects the observers_list_.
321 ObserverList<TabProxyDelegate> observers_list_; 316 ObserverList<TabProxyDelegate> observers_list_;
322 DISALLOW_COPY_AND_ASSIGN(TabProxy); 317 DISALLOW_COPY_AND_ASSIGN(TabProxy);
323 }; 318 };
324 319
325 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 320 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/browser_proxy.cc ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698