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

Side by Side Diff: chrome/test/pyautolib/pyautolib.i

Issue 8395044: Disable the Developer Tools when Javascript is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « chrome/test/pyautolib/pyautolib.cc ('k') | 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) 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 // Swig Interface for PyAuto. 5 // Swig Interface for PyAuto.
6 // PyAuto makes the Automation Proxy interface available in Python 6 // PyAuto makes the Automation Proxy interface available in Python
7 // 7 //
8 // Running swig as: 8 // Running swig as:
9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i 9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i
10 // would generate pyautolib.py, pyautolib_wrap.cxx 10 // would generate pyautolib.py, pyautolib_wrap.cxx
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. " 257 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. "
258 "The list can be found at chrome/app/chrome_dll_resource.h. " 258 "The list can be found at chrome/app/chrome_dll_resource.h. "
259 "Note that this method just schedules the accelerator, but does " 259 "Note that this method just schedules the accelerator, but does "
260 "not wait for it to actually finish doing anything." 260 "not wait for it to actually finish doing anything."
261 "Returns True on success.") 261 "Returns True on success.")
262 ApplyAccelerator; 262 ApplyAccelerator;
263 bool ApplyAccelerator(int id, int window_index=0); 263 bool ApplyAccelerator(int id, int window_index=0);
264 %feature("docstring", "Like ApplyAccelerator, except that it waits for " 264 %feature("docstring", "Like ApplyAccelerator, except that it waits for "
265 "the command to execute.") RunCommand; 265 "the command to execute.") RunCommand;
266 bool RunCommand(int browser_command, int window_index = 0); 266 bool RunCommand(int browser_command, int window_index = 0);
267 %feature("docstring", "Returns true if the given command id is enabled on "
268 "the given window.") IsMenuCommandEnabled;
269 bool IsMenuCommandEnabled(int browser_command, int window_index = 0);
267 270
268 // Get/fetch properties 271 // Get/fetch properties
269 %feature("docstring", 272 %feature("docstring",
270 "Get the path to download directory.") GetDownloadDirectory; 273 "Get the path to download directory.") GetDownloadDirectory;
271 FilePath GetDownloadDirectory(); 274 FilePath GetDownloadDirectory();
272 275
273 %feature("docstring", "Get the path to profile directory.") user_data_dir; 276 %feature("docstring", "Get the path to profile directory.") user_data_dir;
274 FilePath user_data_dir() const; 277 FilePath user_data_dir() const;
275 278
276 %feature("docstring", "Set download shelf visibility for the given or " 279 %feature("docstring", "Set download shelf visibility for the given or "
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 GetSyncXmppPort; 448 GetSyncXmppPort;
446 int GetSyncXmppPort() const { 449 int GetSyncXmppPort() const {
447 int val = 0; 450 int val = 0;
448 $self->server_data().GetInteger("xmpp_port", &val); 451 $self->server_data().GetInteger("xmpp_port", &val);
449 return val; 452 return val;
450 } 453 }
451 }; 454 };
452 455
453 } 456 }
454 457
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyautolib.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698