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

Side by Side Diff: chrome/browser/devtools/devtools_ui_bindings.h

Issue 2861053003: DevTools: [lighthouse] Implement performance metrics filmstrip (Closed)
Patch Set: Created 3 years, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 static GURL SanitizeFrontendURL(const GURL& url); 46 static GURL SanitizeFrontendURL(const GURL& url);
47 static bool IsValidFrontendURL(const GURL& url); 47 static bool IsValidFrontendURL(const GURL& url);
48 48
49 class Delegate { 49 class Delegate {
50 public: 50 public:
51 virtual ~Delegate() {} 51 virtual ~Delegate() {}
52 virtual void ActivateWindow() = 0; 52 virtual void ActivateWindow() = 0;
53 virtual void CloseWindow() = 0; 53 virtual void CloseWindow() = 0;
54 virtual void Inspect(scoped_refptr<content::DevToolsAgentHost> host) = 0; 54 virtual void Inspect(scoped_refptr<content::DevToolsAgentHost> host) = 0;
55 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; 55 virtual void SetInspectedPageBounds(const gfx::Rect& rect, bool force) = 0;
56 virtual void InspectElementCompleted() = 0; 56 virtual void InspectElementCompleted() = 0;
57 virtual void SetIsDocked(bool is_docked) = 0; 57 virtual void SetIsDocked(bool is_docked) = 0;
58 virtual void OpenInNewTab(const std::string& url) = 0; 58 virtual void OpenInNewTab(const std::string& url) = 0;
59 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; 59 virtual void SetWhitelistedShortcuts(const std::string& message) = 0;
60 virtual void SetEyeDropperActive(bool active) = 0; 60 virtual void SetEyeDropperActive(bool active) = 0;
61 virtual void OpenNodeFrontend() = 0; 61 virtual void OpenNodeFrontend() = 0;
62 62
63 virtual void InspectedContentsClosing() = 0; 63 virtual void InspectedContentsClosing() = 0;
64 virtual void OnLoadCompleted() = 0; 64 virtual void OnLoadCompleted() = 0;
65 virtual void ReadyForTest() = 0; 65 virtual void ReadyForTest() = 0;
(...skipping 25 matching lines...) Expand all
91 // content::DevToolsAgentHostClient implementation. 91 // content::DevToolsAgentHostClient implementation.
92 void DispatchProtocolMessage(content::DevToolsAgentHost* agent_host, 92 void DispatchProtocolMessage(content::DevToolsAgentHost* agent_host,
93 const std::string& message) override; 93 const std::string& message) override;
94 void AgentHostClosed(content::DevToolsAgentHost* agent_host, 94 void AgentHostClosed(content::DevToolsAgentHost* agent_host,
95 bool replaced_with_another_client) override; 95 bool replaced_with_another_client) override;
96 96
97 // DevToolsEmbedderMessageDispatcher::Delegate implementation. 97 // DevToolsEmbedderMessageDispatcher::Delegate implementation.
98 void ActivateWindow() override; 98 void ActivateWindow() override;
99 void CloseWindow() override; 99 void CloseWindow() override;
100 void LoadCompleted() override; 100 void LoadCompleted() override;
101 void SetInspectedPageBounds(const gfx::Rect& rect) override; 101 void SetInspectedPageBounds(const gfx::Rect& rect, bool force) override;
102 void InspectElementCompleted() override; 102 void InspectElementCompleted() override;
103 void InspectedURLChanged(const std::string& url) override; 103 void InspectedURLChanged(const std::string& url) override;
104 void LoadNetworkResource(const DispatchCallback& callback, 104 void LoadNetworkResource(const DispatchCallback& callback,
105 const std::string& url, 105 const std::string& url,
106 const std::string& headers, 106 const std::string& headers,
107 int stream_id) override; 107 int stream_id) override;
108 void SetIsDocked(const DispatchCallback& callback, bool is_docked) override; 108 void SetIsDocked(const DispatchCallback& callback, bool is_docked) override;
109 void OpenInNewTab(const std::string& url) override; 109 void OpenInNewTab(const std::string& url) override;
110 void SaveToFile(const std::string& url, 110 void SaveToFile(const std::string& url,
111 const std::string& content, 111 const std::string& content,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 embedder_message_dispatcher_; 238 embedder_message_dispatcher_;
239 GURL url_; 239 GURL url_;
240 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; 240 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>;
241 PendingRequestsMap pending_requests_; 241 PendingRequestsMap pending_requests_;
242 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; 242 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_;
243 243
244 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); 244 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings);
245 }; 245 };
246 246
247 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ 247 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698