| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void hideDOMNodeHighlight() { hideHighlight(); } | 129 void hideDOMNodeHighlight() { hideHighlight(); } |
| 130 | 130 |
| 131 void show(); | 131 void show(); |
| 132 void showPanel(const String&); | 132 void showPanel(const String&); |
| 133 void close(); | 133 void close(); |
| 134 | 134 |
| 135 // We are in transition from JS transport via webInspector to native | 135 // We are in transition from JS transport via webInspector to native |
| 136 // transport via InspectorClient. After migration, webInspector parameter sh
ould | 136 // transport via InspectorClient. After migration, webInspector parameter sh
ould |
| 137 // be removed. | 137 // be removed. |
| 138 void connectFrontend(); | 138 void connectFrontend(); |
| 139 void reuseFrontend(); |
| 139 void disconnectFrontend(); | 140 void disconnectFrontend(); |
| 140 | 141 |
| 141 void addMessageToConsole(MessageSource, MessageType, MessageLevel, ScriptCal
lStack*, const String& message); | 142 void addMessageToConsole(MessageSource, MessageType, MessageLevel, ScriptCal
lStack*, const String& message); |
| 142 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, unsigned lineNumber, const String& sourceID); | 143 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, unsigned lineNumber, const String& sourceID); |
| 143 void clearConsoleMessages(); | 144 void clearConsoleMessages(); |
| 144 const Vector<OwnPtr<ConsoleMessage> >& consoleMessages() const { return m_co
nsoleMessages; } | 145 const Vector<OwnPtr<ConsoleMessage> >& consoleMessages() const { return m_co
nsoleMessages; } |
| 145 | 146 |
| 146 bool searchingForNodeInPage() const { return m_searchingForNode; } | 147 bool searchingForNodeInPage() const { return m_searchingForNode; } |
| 147 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); | 148 void mouseDidMoveOverElement(const HitTestResult&, unsigned modifierFlags); |
| 148 void handleMousePress(); | 149 void handleMousePress(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 static const String& inspectorStartsAttachedSettingName(); | 259 static const String& inspectorStartsAttachedSettingName(); |
| 259 | 260 |
| 260 private: | 261 private: |
| 261 static const String& frontendSettingsSettingName(); | 262 static const String& frontendSettingsSettingName(); |
| 262 | 263 |
| 263 friend class InspectorBackend; | 264 friend class InspectorBackend; |
| 264 friend class InspectorBackendDispatcher; | 265 friend class InspectorBackendDispatcher; |
| 265 friend class InjectedScriptHost; | 266 friend class InjectedScriptHost; |
| 266 | 267 |
| 267 void populateScriptObjects(); | 268 void populateScriptObjects(); |
| 269 void restoreDebugger(); |
| 270 void restoreProfiler(); |
| 268 void unbindAllResources(); | 271 void unbindAllResources(); |
| 269 | 272 |
| 270 // Following are used from InspectorBackend and internally. | 273 // Following are used from InspectorBackend and internally. |
| 271 void setSearchingForNode(bool enabled); | 274 void setSearchingForNode(bool enabled); |
| 272 void enableSearchingForNode() { setSearchingForNode(true); } | 275 void enableSearchingForNode() { setSearchingForNode(true); } |
| 273 void disableSearchingForNode() { setSearchingForNode(false); } | 276 void disableSearchingForNode() { setSearchingForNode(false); } |
| 274 | 277 |
| 275 void setMonitoringXHR(bool enabled); | 278 void setMonitoringXHR(bool enabled); |
| 276 void enableMonitoringXHR() { setMonitoringXHR(true); } | 279 void enableMonitoringXHR() { setMonitoringXHR(true); } |
| 277 void disableMonitoringXHR() { setMonitoringXHR(false); } | 280 void disableMonitoringXHR() { setMonitoringXHR(false); } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 if (inspectorController->hasFrontend()) | 441 if (inspectorController->hasFrontend()) |
| 439 return inspectorController; | 442 return inspectorController; |
| 440 } | 443 } |
| 441 } | 444 } |
| 442 return 0; | 445 return 0; |
| 443 } | 446 } |
| 444 | 447 |
| 445 } // namespace WebCore | 448 } // namespace WebCore |
| 446 | 449 |
| 447 #endif // !defined(InspectorController_h) | 450 #endif // !defined(InspectorController_h) |
| OLD | NEW |