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

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, 4 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();
59 void bringToFront();
60 void setZoomFactor(float); 57 void setZoomFactor(float);
61 void inspectedURLChanged(const String&); 58 void inspectedURLChanged(const String&);
62 59
63 void setAttachedWindowHeight(unsigned);
64 void moveWindowBy(float x, float y) const;
65 void setInjectedScriptForOrigin(const String& origin, const String& script); 60 void setInjectedScriptForOrigin(const String& origin, const String& script);
66 61
67 void copyText(const String& text); 62 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); 63 void close(const String& url);
72 64
73 // Called from [Custom] implementations. 65 // Called from [Custom] implementations.
74 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); 66 void showContextMenu(Event*, const Vector<ContextMenuItem>& items);
75 void sendMessageToBackend(const String& message); 67 void sendMessageToBackend(const String& message);
76 void sendMessageToFrontendHost(const String& message); 68 void sendMessageToFrontendHost(const String& message);
77 69
78 String loadResourceSynchronously(const String& url); 70 String loadResourceSynchronously(const String& url);
79 String getSelectionBackgroundColor(); 71 String getSelectionBackgroundColor();
80 String getSelectionForegroundColor(); 72 String getSelectionForegroundColor();
81 73
82 void requestFileSystems();
83 void addFileSystem();
84 void removeFileSystem(const String& fileSystemPath);
85 PassRefPtr<DOMFileSystem> isolatedFileSystem(const String& fileSystemName, c onst String& rootURL); 74 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 75
90 bool isUnderTest(); 76 bool isUnderTest();
91 77
92 // Deprecated but should stay around for a while as old front-ends may use t hem. 78 // Deprecated but should stay around for a while as old front-ends may use t hem.
93 bool canInspectWorkers(); 79 bool canInspectWorkers();
94 bool canSaveAs(); 80 bool canSaveAs();
95 bool canSave(); 81 bool canSave();
96 bool supportsFileSystems(); 82 bool supportsFileSystems();
97 void loaded(); 83 void loaded();
98 String hiddenPanels(); 84 String hiddenPanels();
99 String localizedStringsURL(); 85 String localizedStringsURL();
100 86
101 private: 87 private:
102 friend class FrontendMenuProvider; 88 friend class FrontendMenuProvider;
103 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); 89 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage);
104 90
105 InspectorFrontendClient* m_client; 91 InspectorFrontendClient* m_client;
106 Page* m_frontendPage; 92 Page* m_frontendPage;
107 FrontendMenuProvider* m_menuProvider; 93 FrontendMenuProvider* m_menuProvider;
108 }; 94 };
109 95
110 } // namespace WebCore 96 } // namespace WebCore
111 97
112 #endif // !defined(InspectorFrontendHost_h) 98 #endif // !defined(InspectorFrontendHost_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698