| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import json | 4 import json |
| 5 import logging | 5 import logging |
| 6 | 6 |
| 7 class InspectorConsole(object): | 7 class InspectorConsole(object): |
| 8 def __init__(self, inspector_backend): | 8 def __init__(self, inspector_backend): |
| 9 self._inspector_backend = inspector_backend | 9 self._inspector_backend = inspector_backend |
| 10 self._inspector_backend.RegisterDomain( | 10 self._inspector_backend.RegisterDomain( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 return | 50 return |
| 51 | 51 |
| 52 if enabled: | 52 if enabled: |
| 53 method_name = 'enable' | 53 method_name = 'enable' |
| 54 else: | 54 else: |
| 55 method_name = 'disable' | 55 method_name = 'disable' |
| 56 self._inspector_backend.SyncRequest({ | 56 self._inspector_backend.SyncRequest({ |
| 57 'method': 'Console.%s' % method_name | 57 'method': 'Console.%s' % method_name |
| 58 }) | 58 }) |
| 59 self._console_enabled = enabled | 59 self._console_enabled = enabled |
| OLD | NEW |