This source file includes following definitions.
- shutdown
- InitRootWindowSettings
- GetRootWindowSettings
- GetRootWindowSettings
#include "ash/root_window_settings.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_property.h"
#include "ui/gfx/display.h"
DECLARE_WINDOW_PROPERTY_TYPE(ash::RootWindowSettings*);
namespace ash {
DEFINE_OWNED_WINDOW_PROPERTY_KEY(RootWindowSettings,
kRootWindowSettingsKey, NULL);
RootWindowSettings::RootWindowSettings()
: display_id(gfx::Display::kInvalidDisplayID),
controller(NULL),
shutdown(false) {
}
RootWindowSettings* InitRootWindowSettings(aura::Window* root) {
RootWindowSettings* settings = new RootWindowSettings();
root->SetProperty(kRootWindowSettingsKey, settings);
return settings;
}
RootWindowSettings* GetRootWindowSettings(aura::Window* root) {
return root->GetProperty(kRootWindowSettingsKey);
}
const RootWindowSettings* GetRootWindowSettings(const aura::Window* root) {
return root->GetProperty(kRootWindowSettingsKey);
}
}