2018-10-19 15:50:30 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Copyright (c) 2013 Adam Roben <adam@roben.org>. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
2014-03-04 16:12:02 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2024-07-25 04:25:45 -05:00
|
|
|
namespace base {
|
|
|
|
class FilePath;
|
|
|
|
}
|
2018-09-12 19:15:08 +05:30
|
|
|
|
2018-10-19 15:50:30 +02:00
|
|
|
namespace electron {
|
2014-03-04 16:12:02 +08:00
|
|
|
|
|
|
|
class InspectableWebContentsDelegate {
|
|
|
|
public:
|
|
|
|
virtual ~InspectableWebContentsDelegate() {}
|
|
|
|
|
2014-04-05 00:10:09 +08:00
|
|
|
// Requested by WebContents of devtools.
|
2016-04-12 16:35:35 +09:00
|
|
|
virtual void DevToolsReloadPage() {}
|
2018-04-17 21:46:27 -04:00
|
|
|
virtual void DevToolsSaveToFile(const std::string& url,
|
|
|
|
const std::string& content,
|
2024-06-07 17:18:35 -04:00
|
|
|
bool save_as,
|
|
|
|
bool is_base64) {}
|
2018-04-17 21:46:27 -04:00
|
|
|
virtual void DevToolsAppendToFile(const std::string& url,
|
|
|
|
const std::string& content) {}
|
2016-03-15 07:53:40 +05:30
|
|
|
virtual void DevToolsRequestFileSystems() {}
|
2018-09-12 19:15:08 +05:30
|
|
|
virtual void DevToolsAddFileSystem(const std::string& type,
|
|
|
|
const base::FilePath& file_system_path) {}
|
2015-06-04 22:21:23 +05:30
|
|
|
virtual void DevToolsRemoveFileSystem(
|
2015-07-24 15:13:36 +05:30
|
|
|
const base::FilePath& file_system_path) {}
|
2018-04-17 21:46:27 -04:00
|
|
|
virtual void DevToolsIndexPath(int request_id,
|
2018-09-12 19:15:08 +05:30
|
|
|
const std::string& file_system_path,
|
|
|
|
const std::string& excluded_folders) {}
|
2023-01-26 09:54:26 +01:00
|
|
|
virtual void DevToolsOpenInNewTab(const std::string& url) {}
|
2024-02-29 10:31:13 +01:00
|
|
|
virtual void DevToolsOpenSearchResultsInNewTab(const std::string& query) {}
|
2016-05-07 04:36:00 +05:30
|
|
|
virtual void DevToolsStopIndexing(int request_id) {}
|
2018-04-17 21:46:27 -04:00
|
|
|
virtual void DevToolsSearchInPath(int request_id,
|
|
|
|
const std::string& file_system_path,
|
|
|
|
const std::string& query) {}
|
2021-06-17 15:42:51 +02:00
|
|
|
virtual void DevToolsSetEyeDropperActive(bool active) {}
|
2014-03-04 16:12:02 +08:00
|
|
|
};
|
|
|
|
|
2018-10-19 15:50:30 +02:00
|
|
|
} // namespace electron
|
2014-03-04 16:12:02 +08:00
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|