linux: Remove dead code on accessing window tree host.

This commit is contained in:
Cheng Zhao 2014-07-11 23:27:45 +08:00
parent b2839b08cd
commit 5c99dff36d
2 changed files with 0 additions and 17 deletions

View file

@ -28,8 +28,6 @@
#if defined(USE_X11)
#include "atom/browser/ui/views/global_menu_bar_x11.h"
#include "atom/browser/ui/views/linux_frame_view.h"
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
#endif
namespace atom {
@ -74,15 +72,6 @@ NativeWindowViews::NativeWindowViews(content::WebContents* web_contents,
params.top_level = true;
params.remove_standard_frame = true;
#if defined(USE_X11)
// Expose DesktopWindowTreeHostX11 for GlobalMenuBarX11.
params.native_widget = new views::DesktopNativeWidgetAura(window_.get());
host_ = new views::DesktopWindowTreeHostX11(
window_.get(),
static_cast<views::DesktopNativeWidgetAura*>(params.native_widget));
params.desktop_window_tree_host = host_;
#endif
bool skip_taskbar = false;
if (options.Get(switches::kSkipTaskbar, &skip_taskbar) && skip_taskbar)
params.type = views::Widget::InitParams::TYPE_BUBBLE;