| OLD | NEW |
| 1 #!/usr/bin/python | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 | |
| 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 4 # 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 |
| 5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 6 | 4 |
| 7 """Python representation for Chromium Plugins info. | 5 """Python representation for Chromium Plugins info. |
| 8 | 6 |
| 9 This is the info available at about:plugins. | 7 This is the info available at about:plugins. |
| 10 Obtain one of these from PyUITestSuite::GetPluginsInfo() call. | 8 Obtain one of these from PyUITestSuite::GetPluginsInfo() call. |
| 11 | 9 |
| 12 Example: | 10 Example: |
| 13 class MyTest(pyauto.PyUITest): | 11 class MyTest(pyauto.PyUITest): |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 Args: | 103 Args: |
| 106 name: the name for which to look for. | 104 name: the name for which to look for. |
| 107 | 105 |
| 108 Returns: | 106 Returns: |
| 109 a plugin info dictionary | 107 a plugin info dictionary |
| 110 None, if not found | 108 None, if not found |
| 111 """ | 109 """ |
| 112 all = self.PluginForName(name) | 110 all = self.PluginForName(name) |
| 113 if not all: return None | 111 if not all: return None |
| 114 return all[0] | 112 return all[0] |
| 115 | |
| OLD | NEW |