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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.h

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 years, 8 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
OLDNEW
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
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) {}
70 virtual void WaitForCreateWindow(LocalFrame*) {} 69 virtual void WaitForCreateWindow(LocalFrame*) {}
71 }; 70 };
72 71
73 enum ResourceType { 72 enum ResourceType {
74 kDocumentResource, 73 kDocumentResource,
75 kStylesheetResource, 74 kStylesheetResource,
76 kImageResource, 75 kImageResource,
77 kFontResource, 76 kFontResource,
78 kMediaResource, 77 kMediaResource,
79 kScriptResource, 78 kScriptResource,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 Maybe<bool> is_regex, 131 Maybe<bool> is_regex,
133 std::unique_ptr<SearchInResourceCallback>) override; 132 std::unique_ptr<SearchInResourceCallback>) override;
134 protocol::Response setDocumentContent(const String& frame_id, 133 protocol::Response setDocumentContent(const String& frame_id,
135 const String& html) override; 134 const String& html) override;
136 protocol::Response startScreencast(Maybe<String> format, 135 protocol::Response startScreencast(Maybe<String> format,
137 Maybe<int> quality, 136 Maybe<int> quality,
138 Maybe<int> max_width, 137 Maybe<int> max_width,
139 Maybe<int> max_height, 138 Maybe<int> max_height,
140 Maybe<int> every_nth_frame) override; 139 Maybe<int> every_nth_frame) override;
141 protocol::Response stopScreencast() override; 140 protocol::Response stopScreencast() override;
142 protocol::Response configureOverlay(Maybe<bool> suspended,
143 Maybe<String> message) override;
144 protocol::Response getLayoutMetrics( 141 protocol::Response getLayoutMetrics(
145 std::unique_ptr<protocol::Page::LayoutViewport>*, 142 std::unique_ptr<protocol::Page::LayoutViewport>*,
146 std::unique_ptr<protocol::Page::VisualViewport>*, 143 std::unique_ptr<protocol::Page::VisualViewport>*,
147 std::unique_ptr<protocol::DOM::Rect>*) override; 144 std::unique_ptr<protocol::DOM::Rect>*) override;
148 145
149 // InspectorInstrumentation API 146 // InspectorInstrumentation API
150 void DidClearDocumentOfWindowObject(LocalFrame*); 147 void DidClearDocumentOfWindowObject(LocalFrame*);
151 void DomContentLoadedEventFired(LocalFrame*); 148 void DomContentLoadedEventFired(LocalFrame*);
152 void LoadEventFired(LocalFrame*); 149 void LoadEventFired(LocalFrame*);
153 void DidCommitLoad(LocalFrame*, DocumentLoader*); 150 void DidCommitLoad(LocalFrame*, DocumentLoader*);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 String script_to_evaluate_on_load_once_; 208 String script_to_evaluate_on_load_once_;
212 bool enabled_; 209 bool enabled_;
213 bool reloading_; 210 bool reloading_;
214 Member<InspectorResourceContentLoader> inspector_resource_content_loader_; 211 Member<InspectorResourceContentLoader> inspector_resource_content_loader_;
215 int resource_content_loader_client_id_; 212 int resource_content_loader_client_id_;
216 }; 213 };
217 214
218 } // namespace blink 215 } // namespace blink
219 216
220 #endif // !defined(InspectorPagerAgent_h) 217 #endif // !defined(InspectorPagerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698