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

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

Issue 165213006: [DevTools] Issue zoom from DevToolsWindow instead of browser commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void AddFileSystem() = 0; 47 virtual void AddFileSystem() = 0;
48 virtual void RemoveFileSystem(const std::string& file_system_path) = 0; 48 virtual void RemoveFileSystem(const std::string& file_system_path) = 0;
49 virtual void UpgradeDraggedFileSystemPermissions( 49 virtual void UpgradeDraggedFileSystemPermissions(
50 const std::string& file_system_url) = 0; 50 const std::string& file_system_url) = 0;
51 virtual void IndexPath(int request_id, 51 virtual void IndexPath(int request_id,
52 const std::string& file_system_path) = 0; 52 const std::string& file_system_path) = 0;
53 virtual void StopIndexing(int request_id) = 0; 53 virtual void StopIndexing(int request_id) = 0;
54 virtual void SearchInPath(int request_id, 54 virtual void SearchInPath(int request_id,
55 const std::string& file_system_path, 55 const std::string& file_system_path,
56 const std::string& query) = 0; 56 const std::string& query) = 0;
57 virtual void ZoomIn() = 0;
58 virtual void ZoomOut() = 0;
59 virtual void ResetZoom() = 0;
57 }; 60 };
58 61
59 explicit DevToolsEmbedderMessageDispatcher(Delegate* delegate); 62 explicit DevToolsEmbedderMessageDispatcher(Delegate* delegate);
60 63
61 ~DevToolsEmbedderMessageDispatcher(); 64 ~DevToolsEmbedderMessageDispatcher();
62 65
63 std::string Dispatch(const std::string& method, base::ListValue* params); 66 std::string Dispatch(const std::string& method, base::ListValue* params);
64 67
65 private: 68 private:
66 typedef base::Callback<bool(const base::ListValue&)> Handler; 69 typedef base::Callback<bool(const base::ListValue&)> Handler;
67 void RegisterHandler(const std::string& method, const Handler& handler); 70 void RegisterHandler(const std::string& method, const Handler& handler);
68 71
69 typedef std::map<std::string, Handler> HandlerMap; 72 typedef std::map<std::string, Handler> HandlerMap;
70 HandlerMap handlers_; 73 HandlerMap handlers_;
71 }; 74 };
72 75
73 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 76 #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