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

Unified Diff: chrome/test/pyautolib/pyautolib.h

Issue 8395044: Disable the Developer Tools when Javascript is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: chrome/test/pyautolib/pyautolib.h
diff --git a/chrome/test/pyautolib/pyautolib.h b/chrome/test/pyautolib/pyautolib.h
index 4b0958eb773ebef056edc400be657975afb3d004..c692dc5266631c29a20ffe0016479a62e4a842ad 100644
--- a/chrome/test/pyautolib/pyautolib.h
+++ b/chrome/test/pyautolib/pyautolib.h
@@ -96,6 +96,9 @@ class PyUITestBase : public UITestBase {
// Like ApplyAccelerator except that it waits for the command to execute.
bool RunCommand(int browser_command, int window_index = 0);
+ // Returns true if the given command id is enabled on the given window.
+ bool IsMenuCommandEnabled(int browser_command, int window_index = 0);
+
// Shows or hides the download shelf.
void SetDownloadShelfVisible(bool is_visible, int window_index = 0);

Powered by Google App Engine
This is Rietveld 408576698