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

Side by Side Diff: content/browser/devtools/protocol/browser_handler.h

Issue 2226323002: Resize DevTools target frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
(...skipping 26 matching lines...) Expand all
37 Response CreateBrowserContext(std::string* out_context_id); 37 Response CreateBrowserContext(std::string* out_context_id);
38 Response DisposeBrowserContext(const std::string& context_id, 38 Response DisposeBrowserContext(const std::string& context_id,
39 bool* out_success); 39 bool* out_success);
40 Response CreateTarget(const std::string& url, 40 Response CreateTarget(const std::string& url,
41 const int* width, 41 const int* width,
42 const int* height, 42 const int* height,
43 const std::string* context_id, 43 const std::string* context_id,
44 std::string* out_targetId); 44 std::string* out_targetId);
45 Response CloseTarget(const std::string& targetId, bool* out_success); 45 Response CloseTarget(const std::string& targetId, bool* out_success);
46 Response GetTargets(TargetInfos* infos); 46 Response GetTargets(TargetInfos* infos);
47 Response GetWebContentsSize(const std::string& targetId,
48 int* width,
49 int* height);
50 Response SetWebContentsSize(const std::string& targetId,
51 int width,
52 int height);
47 Response Attach(const std::string& targetId); 53 Response Attach(const std::string& targetId);
48 Response Detach(const std::string& targetId); 54 Response Detach(const std::string& targetId);
49 Response SendMessage(const std::string& targetId, const std::string& message); 55 Response SendMessage(const std::string& targetId, const std::string& message);
50 56
51 private: 57 private:
52 void DispatchProtocolMessage(DevToolsAgentHost* agent_host, 58 void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
53 const std::string& message) override; 59 const std::string& message) override;
54 60
55 void AgentHostClosed(DevToolsAgentHost* agent_host, 61 void AgentHostClosed(DevToolsAgentHost* agent_host,
56 bool replaced_with_another_client) override; 62 bool replaced_with_another_client) override;
57 63
58 std::unique_ptr<Client> client_; 64 std::unique_ptr<Client> client_;
59 DISALLOW_COPY_AND_ASSIGN(BrowserHandler); 65 DISALLOW_COPY_AND_ASSIGN(BrowserHandler);
60 }; 66 };
61 67
62 } // namespace browser 68 } // namespace browser
63 } // namespace devtools 69 } // namespace devtools
64 } // namespace content 70 } // namespace content
65 71
66 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ 72 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698