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

Unified Diff: chrome/test/automation/browser_proxy.cc

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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/browser_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/browser_proxy.cc
===================================================================
--- chrome/test/automation/browser_proxy.cc (revision 17483)
+++ chrome/test/automation/browser_proxy.cc (working copy)
@@ -327,6 +327,27 @@
0, handle_, is_visible, is_animating));
}
+bool BrowserProxy::IsShelfVisible(bool* is_visible) {
+ if (!is_valid())
+ return false;
+
+ if (!is_visible) {
+ NOTREACHED();
+ return false;
+ }
+
+ return sender_->Send(new AutomationMsg_ShelfVisibility(0, handle_,
+ is_visible));
+}
+
+bool BrowserProxy::SetShelfVisible(bool is_visible) {
+ if (!is_valid())
+ return false;
+
+ return sender_->Send(new AutomationMsg_SetShelfVisibility(0, handle_,
+ is_visible));
+}
+
bool BrowserProxy::SetIntPreference(const std::wstring& name, int value) {
if (!is_valid())
return false;
@@ -414,7 +435,7 @@
AutocompleteEditProxy* p = static_cast<AutocompleteEditProxy*>(
tracker_->GetResource(autocomplete_edit_handle));
-
+
if (!p) {
p = new AutocompleteEditProxy(sender_, tracker_, autocomplete_edit_handle);
p->AddRef();
« no previous file with comments | « chrome/test/automation/browser_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698