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

Unified Diff: content/browser/devtools/protocol/ui_handler.cc

Issue 2734123004: add a new set of commands to resize and position windows (Closed)
Patch Set: add methods to UI domain Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/ui_handler.cc
diff --git a/content/browser/devtools/protocol/ui_handler.cc b/content/browser/devtools/protocol/ui_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6206688e3e2e8ea574cf5dedb28d0fd60e38389b
--- /dev/null
+++ b/content/browser/devtools/protocol/ui_handler.cc
@@ -0,0 +1,51 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/devtools/protocol/ui_handler.h"
+
+namespace content {
+namespace protocol {
+
+UIHandler::UIHandler() : DevToolsDomainHandler(UI::Metainfo::domainName) {}
+
+UIHandler::~UIHandler() {}
+
+void UIHandler::Wire(UberDispatcher* dispatcher) {
+ UI::Dispatcher::wire(dispatcher, this);
+}
+
+Response UIHandler::GetWindowFromTarget(const String& targetId, int* windowId) {
dgozman 2017/03/20 22:00:48 It's sad that we have to do a stub here - sorry fo
+ return Response::Error("not implemented");
+}
+
+Response UIHandler::MaximizeWindow(int windowId) {
+ return Response::Error("not implemented");
+}
+
+Response UIHandler::MinimizeWindow(int windowId) {
+ return Response::Error("not implemented");
+}
+
+Response UIHandler::GetWindowBounds(int windowId,
+ int* left,
+ int* top,
+ int* width,
+ int* height) {
+ return Response::Error("not implemented");
+}
+
+Response UIHandler::SetWindowBounds(int windowId,
+ Maybe<int> left,
+ Maybe<int> top,
+ Maybe<int> width,
+ Maybe<int> height) {
+ return Response::Error("not implemented");
+}
+
+Response UIHandler::SetWindowFullscreen(int windowId, bool fullscreen) {
+ return Response::Error("not implemented");
+}
+
+} // namespace protocol
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698