This source file includes following definitions.
- browser_view_
- AsDesktopWindowTreeHost
- GetMinimizeButtonOffset
- UsesNativeSystemMenu
- Init
- CloseNow
- CreateBrowserDesktopWindowTreeHost
#include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host_x11.h"
BrowserDesktopWindowTreeHostX11::BrowserDesktopWindowTreeHostX11(
views::internal::NativeWidgetDelegate* native_widget_delegate,
views::DesktopNativeWidgetAura* desktop_native_widget_aura,
BrowserView* browser_view)
: DesktopWindowTreeHostX11(native_widget_delegate,
desktop_native_widget_aura),
browser_view_(browser_view) {
}
BrowserDesktopWindowTreeHostX11::~BrowserDesktopWindowTreeHostX11() {
}
views::DesktopWindowTreeHost*
BrowserDesktopWindowTreeHostX11::AsDesktopWindowTreeHost() {
return this;
}
int BrowserDesktopWindowTreeHostX11::GetMinimizeButtonOffset() const {
return 0;
}
bool BrowserDesktopWindowTreeHostX11::UsesNativeSystemMenu() const {
return false;
}
void BrowserDesktopWindowTreeHostX11::Init(
aura::Window* content_window,
const views::Widget::InitParams& params) {
views::DesktopWindowTreeHostX11::Init(content_window, params);
global_menu_bar_x11_.reset(new GlobalMenuBarX11(browser_view_, this));
}
void BrowserDesktopWindowTreeHostX11::CloseNow() {
global_menu_bar_x11_.reset();
DesktopWindowTreeHostX11::CloseNow();
}
BrowserDesktopWindowTreeHost*
BrowserDesktopWindowTreeHost::CreateBrowserDesktopWindowTreeHost(
views::internal::NativeWidgetDelegate* native_widget_delegate,
views::DesktopNativeWidgetAura* desktop_native_widget_aura,
BrowserView* browser_view,
BrowserFrame* browser_frame) {
return new BrowserDesktopWindowTreeHostX11(native_widget_delegate,
desktop_native_widget_aura,
browser_view);
}