Add "type" option to change window type

This commit is contained in:
Cheng Zhao 2015-02-11 12:12:22 +08:00
parent 6b37f30bd6
commit f0924df68a
5 changed files with 29 additions and 0 deletions

View file

@ -225,6 +225,11 @@ NativeWindowViews::NativeWindowViews(content::WebContents* web_contents,
ui::SetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", "ATOM",
state_atom_list);
}
// Set the _NET_WM_WINDOW_TYPE.
std::string window_type;
if (options.Get(switches::kType, &window_type))
SetWindowType(GetAcceleratedWidget(), window_type);
#endif
// Add web view.