move pdfviewer ui data source to separate file
This commit is contained in:
parent
008497500b
commit
fd8c450ef3
5 changed files with 135 additions and 96 deletions
36
atom/browser/ui/webui/pdf_viewer_ui.h
Normal file
36
atom/browser/ui/webui/pdf_viewer_ui.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
// Copyright (c) 2017 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
|
||||
#define ATOM_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "content/public/browser/web_ui_controller.h"
|
||||
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
||||
class PdfViewerUI : public content::WebUIController {
|
||||
public:
|
||||
static const char kHost[];
|
||||
|
||||
PdfViewerUI(content::BrowserContext* browser_context,
|
||||
content::WebUI* web_ui,
|
||||
const std::string& view_id);
|
||||
|
||||
// content::WebUIController implementation.
|
||||
void RenderViewCreated(content::RenderViewHost* rvh) override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(PdfViewerUI);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
|
Loading…
Add table
Add a link
Reference in a new issue