| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_INSPECTOR_CLIENT_IMPL_H_ | |
| 6 #define WEBKIT_GLUE_INSPECTOR_CLIENT_IMPL_H_ | |
| 7 | |
| 8 #include "InspectorClient.h" | |
| 9 #include "InspectorController.h" | |
| 10 #include <wtf/OwnPtr.h> | |
| 11 | |
| 12 class WebNodeHighlight; | |
| 13 class WebViewImpl; | |
| 14 | |
| 15 class InspectorClientImpl : public WebCore::InspectorClient { | |
| 16 public: | |
| 17 InspectorClientImpl(WebViewImpl*); | |
| 18 ~InspectorClientImpl(); | |
| 19 | |
| 20 // InspectorClient | |
| 21 virtual void inspectorDestroyed(); | |
| 22 | |
| 23 virtual WebCore::Page* createPage(); | |
| 24 virtual WebCore::String localizedStringsURL(); | |
| 25 virtual WebCore::String hiddenPanels(); | |
| 26 virtual void showWindow(); | |
| 27 virtual void closeWindow(); | |
| 28 virtual bool windowVisible(); | |
| 29 | |
| 30 virtual void attachWindow(); | |
| 31 virtual void detachWindow(); | |
| 32 | |
| 33 virtual void setAttachedWindowHeight(unsigned height); | |
| 34 | |
| 35 virtual void highlight(WebCore::Node*); | |
| 36 virtual void hideHighlight(); | |
| 37 | |
| 38 virtual void inspectedURLChanged(const WebCore::String& newURL); | |
| 39 | |
| 40 virtual void populateSetting( | |
| 41 const WebCore::String& key, | |
| 42 WebCore::InspectorController::Setting&); | |
| 43 virtual void storeSetting( | |
| 44 const WebCore::String& key, | |
| 45 const WebCore::InspectorController::Setting&); | |
| 46 virtual void removeSetting(const WebCore::String& key); | |
| 47 | |
| 48 virtual void inspectorWindowObjectCleared(); | |
| 49 | |
| 50 private: | |
| 51 void LoadSettings(); | |
| 52 void SaveSettings(); | |
| 53 | |
| 54 // The WebViewImpl of the page being inspected; gets passed to the constructor | |
| 55 WebViewImpl* inspected_web_view_; | |
| 56 | |
| 57 typedef HashMap<WebCore::String, WebCore::InspectorController::Setting> | |
| 58 SettingsMap; | |
| 59 OwnPtr<SettingsMap> settings_; | |
| 60 }; | |
| 61 | |
| 62 #endif // WEBKIT_GLUE_INSPECTOR_CLIENT_IMPL_H_ | |
| OLD | NEW |