remove unneeded windows specific things
This commit is contained in:
parent
9068182664
commit
4088f0eb33
2 changed files with 0 additions and 47 deletions
|
@ -1,46 +0,0 @@
|
|||
// Copyright (c) 2016 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "atom/browser/osr_render_widget_host_view.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
class DummyWindowWin : public gfx::WindowImpl {
|
||||
public:
|
||||
DummyWindowWin() {
|
||||
// Create a hidden 1x1 borderless window.
|
||||
set_window_style(WS_POPUP | WS_SYSMENU);
|
||||
Init(NULL, gfx::Rect(0, 0, 1, 1));
|
||||
}
|
||||
|
||||
~DummyWindowWin() override {
|
||||
DestroyWindow(hwnd());
|
||||
}
|
||||
|
||||
private:
|
||||
CR_BEGIN_MSG_MAP_EX(DummyWindowWin)
|
||||
CR_MSG_WM_PAINT(OnPaint)
|
||||
CR_END_MSG_MAP()
|
||||
|
||||
void OnPaint(HDC dc) {
|
||||
ValidateRect(hwnd(), NULL);
|
||||
}
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(DummyWindowWin);
|
||||
};
|
||||
|
||||
void OffScreenRenderWidgetHostView::CreatePlatformWidget() {
|
||||
DCHECK(!window_);
|
||||
window_.reset(new DummyWindowWin());
|
||||
compositor_widget_ = window_->hwnd();
|
||||
}
|
||||
|
||||
void OffScreenRenderWidgetHostView::DestroyPlatformWidget() {
|
||||
window_.reset(NULL);
|
||||
compositor_widget_ = gfx::kNullAcceleratedWidget;
|
||||
}
|
||||
|
||||
} // namespace atom
|
|
@ -212,7 +212,6 @@
|
|||
'atom/browser/osr_output_device.h',
|
||||
'atom/browser/osr_render_widget_host_view.cc',
|
||||
'atom/browser/osr_render_widget_host_view.h',
|
||||
'atom/browser/osr_render_widget_host_view_win.cc',
|
||||
'atom/browser/osr_render_widget_host_view_mac.mm',
|
||||
'atom/browser/net/asar/asar_protocol_handler.cc',
|
||||
'atom/browser/net/asar/asar_protocol_handler.h',
|
||||
|
|
Loading…
Reference in a new issue