OLD | NEW |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void close(const String& url); | 78 void close(const String& url); |
79 | 79 |
80 bool canInspectWorkers(); | 80 bool canInspectWorkers(); |
81 | 81 |
82 // Called from [Custom] implementations. | 82 // Called from [Custom] implementations. |
83 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); | 83 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); |
84 void sendMessageToBackend(const String& message); | 84 void sendMessageToBackend(const String& message); |
85 | 85 |
86 String loadResourceSynchronously(const String& url); | 86 String loadResourceSynchronously(const String& url); |
87 | 87 |
| 88 bool isUnderTest(); |
| 89 |
88 private: | 90 private: |
89 #if ENABLE(CONTEXT_MENUS) | 91 #if ENABLE(CONTEXT_MENUS) |
90 friend class FrontendMenuProvider; | 92 friend class FrontendMenuProvider; |
91 #endif | 93 #endif |
92 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); | 94 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); |
93 | 95 |
94 InspectorFrontendClient* m_client; | 96 InspectorFrontendClient* m_client; |
95 Page* m_frontendPage; | 97 Page* m_frontendPage; |
96 #if ENABLE(CONTEXT_MENUS) | 98 #if ENABLE(CONTEXT_MENUS) |
97 FrontendMenuProvider* m_menuProvider; | 99 FrontendMenuProvider* m_menuProvider; |
98 #endif | 100 #endif |
99 }; | 101 }; |
100 | 102 |
101 } // namespace WebCore | 103 } // namespace WebCore |
102 | 104 |
103 #endif // !defined(InspectorFrontendHost_h) | 105 #endif // !defined(InspectorFrontendHost_h) |
OLD | NEW |