This source file includes following definitions.
- IsFullScreenMode
#include "chrome/browser/fullscreen.h"
#include <vector>
#include "ui/gfx/native_widget_types.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
#include "ui/views/widget/widget.h"
bool IsFullScreenMode() {
std::vector<aura::Window*> all_windows =
views::DesktopWindowTreeHostX11::GetAllOpenWindows();
if (all_windows.empty())
return false;
views::Widget* widget =
views::Widget::GetWidgetForNativeWindow(all_windows[0]);
return widget && widget->IsFullscreen();
}