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

Side by Side Diff: chrome/browser/devtools/devtools_embedder_message_dispatcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EMBEDDER_MESSAGE_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 class Delegate { 29 class Delegate {
30 public: 30 public:
31 using DispatchCallback = base::Callback<void(const base::Value*)>; 31 using DispatchCallback = base::Callback<void(const base::Value*)>;
32 32
33 virtual ~Delegate() {} 33 virtual ~Delegate() {}
34 34
35 virtual void ActivateWindow() = 0; 35 virtual void ActivateWindow() = 0;
36 virtual void CloseWindow() = 0; 36 virtual void CloseWindow() = 0;
37 virtual void LoadCompleted() = 0; 37 virtual void LoadCompleted() = 0;
38 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; 38 virtual void SetInspectedPageBounds(const gfx::Rect& rect, bool force) = 0;
39 virtual void InspectElementCompleted() = 0; 39 virtual void InspectElementCompleted() = 0;
40 virtual void InspectedURLChanged(const std::string& url) = 0; 40 virtual void InspectedURLChanged(const std::string& url) = 0;
41 virtual void SetIsDocked(const DispatchCallback& callback, 41 virtual void SetIsDocked(const DispatchCallback& callback,
42 bool is_docked) = 0; 42 bool is_docked) = 0;
43 virtual void OpenInNewTab(const std::string& url) = 0; 43 virtual void OpenInNewTab(const std::string& url) = 0;
44 virtual void SaveToFile(const std::string& url, 44 virtual void SaveToFile(const std::string& url,
45 const std::string& content, 45 const std::string& content,
46 bool save_as) = 0; 46 bool save_as) = 0;
47 virtual void AppendToFile(const std::string& url, 47 virtual void AppendToFile(const std::string& url,
48 const std::string& content) = 0; 48 const std::string& content) = 0;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual ~DevToolsEmbedderMessageDispatcher() {} 99 virtual ~DevToolsEmbedderMessageDispatcher() {}
100 virtual bool Dispatch(const DispatchCallback& callback, 100 virtual bool Dispatch(const DispatchCallback& callback,
101 const std::string& method, 101 const std::string& method,
102 const base::ListValue* params) = 0; 102 const base::ListValue* params) = 0;
103 103
104 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( 104 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend(
105 Delegate* delegate); 105 Delegate* delegate);
106 }; 106 };
107 107
108 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 108 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698