Use the "chrome-devtools://" scheme to open devtools.
This commit is contained in:
parent
c949fd931c
commit
9d29c8eb7c
10 changed files with 246 additions and 101 deletions
28
brightray/browser/devtools_ui.h
Normal file
28
brightray/browser/devtools_ui.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright (c) 2011 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-CHROMIUM file.
|
||||
|
||||
#ifndef BRIGHTRAY_BROWSER_DEVTOOLS_UI_H_
|
||||
#define BRIGHTRAY_BROWSER_DEVTOOLS_UI_H_
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "content/public/browser/web_ui_controller.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class BrowserContext;
|
||||
|
||||
class DevToolsUI : public content::WebUIController {
|
||||
public:
|
||||
explicit DevToolsUI(BrowserContext* browser_context, content::WebUI* web_ui);
|
||||
|
||||
private:
|
||||
// Weak reference to the browser context.
|
||||
BrowserContext* browser_context_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(DevToolsUI);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue