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

Side by Side 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, 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file declares the C++ side of PyAuto, the python interface to 5 // This file declares the C++ side of PyAuto, the python interface to
6 // Chromium automation. It access Chromium's internals using Automation Proxy. 6 // Chromium automation. It access Chromium's internals using Automation Proxy.
7 7
8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
10 #pragma once 10 #pragma once
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) to the 90 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) to the
91 // browser window at the given or first index. 91 // browser window at the given or first index.
92 // The list can be found at chrome/app/chrome_command_ids.h 92 // The list can be found at chrome/app/chrome_command_ids.h
93 // Returns true if the call was successful. 93 // Returns true if the call was successful.
94 bool ApplyAccelerator(int id, int window_index = 0); 94 bool ApplyAccelerator(int id, int window_index = 0);
95 95
96 // Like ApplyAccelerator except that it waits for the command to execute. 96 // Like ApplyAccelerator except that it waits for the command to execute.
97 bool RunCommand(int browser_command, int window_index = 0); 97 bool RunCommand(int browser_command, int window_index = 0);
98 98
99 // Returns true if the given command id is enabled on the given window.
100 bool IsMenuCommandEnabled(int browser_command, int window_index = 0);
101
99 // Shows or hides the download shelf. 102 // Shows or hides the download shelf.
100 void SetDownloadShelfVisible(bool is_visible, int window_index = 0); 103 void SetDownloadShelfVisible(bool is_visible, int window_index = 0);
101 104
102 // Determines the visibility of the download shelf 105 // Determines the visibility of the download shelf
103 bool IsDownloadShelfVisible(int window_index = 0); 106 bool IsDownloadShelfVisible(int window_index = 0);
104 107
105 // Open the Find box 108 // Open the Find box
106 void OpenFindInPage(int window_index = 0); 109 void OpenFindInPage(int window_index = 0);
107 110
108 // Determines the visibility of the Find box 111 // Determines the visibility of the Find box
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // This is necessary since python's unittest module creates instances of 207 // This is necessary since python's unittest module creates instances of
205 // TestCase at load time itself. 208 // TestCase at load time itself.
206 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); 209 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type);
207 static MessageLoop* message_loop_; 210 static MessageLoop* message_loop_;
208 211
209 // Path to named channel id. 212 // Path to named channel id.
210 std::string named_channel_id_; 213 std::string named_channel_id_;
211 }; 214 };
212 215
213 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 216 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698