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

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

Issue 63173016: DevTools: place DevTools WebContents underneath inspected WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years 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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10 matching lines...) Expand all
21 * The messages are sent via InspectorFrontendHost.sendMessageToEmbedder method. 21 * The messages are sent via InspectorFrontendHost.sendMessageToEmbedder method.
22 */ 22 */
23 class DevToolsEmbedderMessageDispatcher { 23 class DevToolsEmbedderMessageDispatcher {
24 public: 24 public:
25 class Delegate { 25 class Delegate {
26 public: 26 public:
27 virtual ~Delegate() {} 27 virtual ~Delegate() {}
28 28
29 virtual void ActivateWindow() = 0; 29 virtual void ActivateWindow() = 0;
30 virtual void CloseWindow() = 0; 30 virtual void CloseWindow() = 0;
31 virtual void SetWindowBounds(int x, int y, int width, int height) = 0; 31 virtual void SetContentsInsets(
32 int top, int left, int bottom, int right) = 0;
32 virtual void MoveWindow(int x, int y) = 0; 33 virtual void MoveWindow(int x, int y) = 0;
33 virtual void SetDockSide(const std::string& side) = 0; 34 virtual void SetDockSide(const std::string& side) = 0;
34 virtual void OpenInNewTab(const std::string& url) = 0; 35 virtual void OpenInNewTab(const std::string& url) = 0;
35 virtual void SaveToFile(const std::string& url, 36 virtual void SaveToFile(const std::string& url,
36 const std::string& content, 37 const std::string& content,
37 bool save_as) = 0; 38 bool save_as) = 0;
38 virtual void AppendToFile(const std::string& url, 39 virtual void AppendToFile(const std::string& url,
39 const std::string& content) = 0; 40 const std::string& content) = 0;
40 virtual void RequestFileSystems() = 0; 41 virtual void RequestFileSystems() = 0;
41 virtual void AddFileSystem() = 0; 42 virtual void AddFileSystem() = 0;
(...skipping 16 matching lines...) Expand all
58 59
59 private: 60 private:
60 typedef base::Callback<bool(const base::ListValue&)> Handler; 61 typedef base::Callback<bool(const base::ListValue&)> Handler;
61 void RegisterHandler(const std::string& method, const Handler& handler); 62 void RegisterHandler(const std::string& method, const Handler& handler);
62 63
63 typedef std::map<std::string, Handler> HandlerMap; 64 typedef std::map<std::string, Handler> HandlerMap;
64 HandlerMap handlers_; 65 HandlerMap handlers_;
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 68 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698