2018-10-19 13:50:30 +00: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.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
|
|
|
|
#define SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
|
2015-06-25 04:29:34 +00:00
|
|
|
|
2017-05-18 22:06:57 +00:00
|
|
|
#include <string>
|
|
|
|
|
2021-06-08 20:22:43 +00:00
|
|
|
#include "ui/base/models/image_model.h"
|
2015-06-25 04:29:34 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-06-25 04:29:34 +00:00
|
|
|
|
|
|
|
class InspectableWebContentsViewDelegate {
|
|
|
|
public:
|
|
|
|
virtual ~InspectableWebContentsViewDelegate() {}
|
|
|
|
|
|
|
|
virtual void DevToolsFocused() {}
|
|
|
|
virtual void DevToolsOpened() {}
|
|
|
|
virtual void DevToolsClosed() {}
|
2020-11-09 21:54:04 +00:00
|
|
|
virtual void DevToolsResized() {}
|
2015-06-25 04:29:34 +00:00
|
|
|
|
|
|
|
// Returns the icon of devtools window.
|
2021-06-08 20:22:43 +00:00
|
|
|
virtual ui::ImageModel GetDevToolsWindowIcon();
|
2015-06-25 04:29:34 +00:00
|
|
|
|
2020-09-21 00:11:59 +00:00
|
|
|
#if defined(OS_LINUX)
|
2015-06-25 04:29:34 +00:00
|
|
|
// Called when creating devtools window.
|
2018-04-18 01:46:27 +00:00
|
|
|
virtual void GetDevToolsWindowWMClass(std::string* name,
|
|
|
|
std::string* class_name) {}
|
2015-06-25 04:29:34 +00:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2015-06-25 04:29:34 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_UI_INSPECTABLE_WEB_CONTENTS_VIEW_DELEGATE_H_
|