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

Side by Side Diff: Source/core/inspector/InspectorFrontendHost.h

Issue 23290002: Complete migration to InspectorFrontendHost.sendMessageToFrontendHost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 3 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class InspectorFrontendHost : public RefCounted<InspectorFrontendHost>, public S criptWrappable { 47 class InspectorFrontendHost : public RefCounted<InspectorFrontendHost>, public S criptWrappable {
48 public: 48 public:
49 static PassRefPtr<InspectorFrontendHost> create(InspectorFrontendClient* cli ent, Page* frontendPage) 49 static PassRefPtr<InspectorFrontendHost> create(InspectorFrontendClient* cli ent, Page* frontendPage)
50 { 50 {
51 return adoptRef(new InspectorFrontendHost(client, frontendPage)); 51 return adoptRef(new InspectorFrontendHost(client, frontendPage));
52 } 52 }
53 53
54 ~InspectorFrontendHost(); 54 ~InspectorFrontendHost();
55 void disconnectClient(); 55 void disconnectClient();
56 56
57 void requestSetDockSide(const String&);
58 void closeWindow(); 57 void closeWindow();
59 void bringToFront();
60 void setZoomFactor(float); 58 void setZoomFactor(float);
61 void inspectedURLChanged(const String&); 59 void inspectedURLChanged(const String&);
62 60
63 void setAttachedWindowHeight(unsigned); 61 void setAttachedWindowHeight(unsigned);
64 void moveWindowBy(float x, float y) const;
65 void setInjectedScriptForOrigin(const String& origin, const String& script); 62 void setInjectedScriptForOrigin(const String& origin, const String& script);
66 63
67 void copyText(const String& text); 64 void copyText(const String& text);
68 void openInNewTab(const String& url);
69 void save(const String& url, const String& content, bool forceSaveAs);
70 void append(const String& url, const String& content);
71 void close(const String& url); 65 void close(const String& url);
72 66
73 // Called from [Custom] implementations. 67 // Called from [Custom] implementations.
74 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); 68 void showContextMenu(Event*, const Vector<ContextMenuItem>& items);
75 void sendMessageToBackend(const String& message); 69 void sendMessageToBackend(const String& message);
76 void sendMessageToEmbedder(const String& message); 70 void sendMessageToEmbedder(const String& message);
77 71
78 String loadResourceSynchronously(const String& url); 72 String loadResourceSynchronously(const String& url);
79 String getSelectionBackgroundColor(); 73 String getSelectionBackgroundColor();
80 String getSelectionForegroundColor(); 74 String getSelectionForegroundColor();
81 75
82 void requestFileSystems();
83 void addFileSystem();
84 void removeFileSystem(const String& fileSystemPath);
85 PassRefPtr<DOMFileSystem> isolatedFileSystem(const String& fileSystemName, c onst String& rootURL); 76 PassRefPtr<DOMFileSystem> isolatedFileSystem(const String& fileSystemName, c onst String& rootURL);
86 void indexPath(int requestId, const String& fileSystemPath);
87 void stopIndexing(int requestId);
88 void searchInPath(int requestId, const String& fileSystemPath, const String& query);
89 77
90 bool isUnderTest(); 78 bool isUnderTest();
91 79
92 // Deprecated but should stay around for a while as old front-ends may use t hem. 80 // Deprecated but should stay around for a while as old front-ends may use t hem.
93 bool canInspectWorkers(); 81 bool canInspectWorkers();
94 bool canSaveAs(); 82 bool canSaveAs();
95 bool canSave(); 83 bool canSave();
96 bool supportsFileSystems(); 84 bool supportsFileSystems();
97 void loaded(); 85 void loaded();
98 String hiddenPanels(); 86 String hiddenPanels();
99 String localizedStringsURL(); 87 String localizedStringsURL();
100 88
101 private: 89 private:
102 friend class FrontendMenuProvider; 90 friend class FrontendMenuProvider;
103 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); 91 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage);
104 92
105 InspectorFrontendClient* m_client; 93 InspectorFrontendClient* m_client;
106 Page* m_frontendPage; 94 Page* m_frontendPage;
107 FrontendMenuProvider* m_menuProvider; 95 FrontendMenuProvider* m_menuProvider;
108 }; 96 };
109 97
110 } // namespace WebCore 98 } // namespace WebCore
111 99
112 #endif // !defined(InspectorFrontendHost_h) 100 #endif // !defined(InspectorFrontendHost_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorFrontendClient.h ('k') | Source/core/inspector/InspectorFrontendHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698