OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 class CORE_EXPORT InspectorPageAgent final | 60 class CORE_EXPORT InspectorPageAgent final |
61 : public InspectorBaseAgent<protocol::Page::Metainfo> { | 61 : public InspectorBaseAgent<protocol::Page::Metainfo> { |
62 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); | 62 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); |
63 | 63 |
64 public: | 64 public: |
65 class Client { | 65 class Client { |
66 public: | 66 public: |
67 virtual ~Client() {} | 67 virtual ~Client() {} |
68 virtual void PageLayoutInvalidated(bool resized) {} | 68 virtual void PageLayoutInvalidated(bool resized) {} |
| 69 virtual void ConfigureOverlay(bool suspended, const String& message) {} |
69 virtual void WaitForCreateWindow(LocalFrame*) {} | 70 virtual void WaitForCreateWindow(LocalFrame*) {} |
70 }; | 71 }; |
71 | 72 |
72 enum ResourceType { | 73 enum ResourceType { |
73 kDocumentResource, | 74 kDocumentResource, |
74 kStylesheetResource, | 75 kStylesheetResource, |
75 kImageResource, | 76 kImageResource, |
76 kFontResource, | 77 kFontResource, |
77 kMediaResource, | 78 kMediaResource, |
78 kScriptResource, | 79 kScriptResource, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 Maybe<bool> is_regex, | 132 Maybe<bool> is_regex, |
132 std::unique_ptr<SearchInResourceCallback>) override; | 133 std::unique_ptr<SearchInResourceCallback>) override; |
133 protocol::Response setDocumentContent(const String& frame_id, | 134 protocol::Response setDocumentContent(const String& frame_id, |
134 const String& html) override; | 135 const String& html) override; |
135 protocol::Response startScreencast(Maybe<String> format, | 136 protocol::Response startScreencast(Maybe<String> format, |
136 Maybe<int> quality, | 137 Maybe<int> quality, |
137 Maybe<int> max_width, | 138 Maybe<int> max_width, |
138 Maybe<int> max_height, | 139 Maybe<int> max_height, |
139 Maybe<int> every_nth_frame) override; | 140 Maybe<int> every_nth_frame) override; |
140 protocol::Response stopScreencast() override; | 141 protocol::Response stopScreencast() override; |
| 142 protocol::Response configureOverlay(Maybe<bool> suspended, |
| 143 Maybe<String> message) override; |
141 protocol::Response getLayoutMetrics( | 144 protocol::Response getLayoutMetrics( |
142 std::unique_ptr<protocol::Page::LayoutViewport>*, | 145 std::unique_ptr<protocol::Page::LayoutViewport>*, |
143 std::unique_ptr<protocol::Page::VisualViewport>*, | 146 std::unique_ptr<protocol::Page::VisualViewport>*, |
144 std::unique_ptr<protocol::DOM::Rect>*) override; | 147 std::unique_ptr<protocol::DOM::Rect>*) override; |
145 | 148 |
146 // InspectorInstrumentation API | 149 // InspectorInstrumentation API |
147 void DidClearDocumentOfWindowObject(LocalFrame*); | 150 void DidClearDocumentOfWindowObject(LocalFrame*); |
148 void DomContentLoadedEventFired(LocalFrame*); | 151 void DomContentLoadedEventFired(LocalFrame*); |
149 void LoadEventFired(LocalFrame*); | 152 void LoadEventFired(LocalFrame*); |
150 void DidCommitLoad(LocalFrame*, DocumentLoader*); | 153 void DidCommitLoad(LocalFrame*, DocumentLoader*); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 String script_to_evaluate_on_load_once_; | 211 String script_to_evaluate_on_load_once_; |
209 bool enabled_; | 212 bool enabled_; |
210 bool reloading_; | 213 bool reloading_; |
211 Member<InspectorResourceContentLoader> inspector_resource_content_loader_; | 214 Member<InspectorResourceContentLoader> inspector_resource_content_loader_; |
212 int resource_content_loader_client_id_; | 215 int resource_content_loader_client_id_; |
213 }; | 216 }; |
214 | 217 |
215 } // namespace blink | 218 } // namespace blink |
216 | 219 |
217 #endif // !defined(InspectorPagerAgent_h) | 220 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |