Lines Matching refs:window
12 #include "ui/aura/window.h"
32 float GetDeviceScaleFactorFromDisplay(Window* window) {
33 gfx::Display display = gfx::Screen::GetScreenFor(window)->
34 GetDisplayNearestWindow(window);
43 DCHECK(!compositor_) << "compositor must be destroyed before root window";
68 window()->Show();
72 compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
74 compositor_->SetRootLayer(window()->layer());
90 float scale = ui::GetDeviceScaleFactor(window()->layer());
93 transform *= window()->layer()->transform();
98 window()->SetTransform(transform);
112 gfx::RectF new_bounds(ui::ConvertRectToDIP(window()->layer(), bounds));
113 window()->layer()->transform().TransformRect(&new_bounds);
114 window()->SetBounds(gfx::Rect(gfx::ToFlooredSize(new_bounds.size())));
199 //window()->RemoveOrDestroyChildren();
214 window()->Init(WINDOW_LAYER_NOT_DRAWN);
215 window()->set_host(this);
216 window()->SetName("RootWindow");
217 window()->SetEventTargeter(
235 // The compositor should have the same size as the native root window host.
237 compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
242 // transformed size of the root window.
257 Window* capture_window = client::GetCaptureWindow(window());
258 if (capture_window && capture_window->GetRootWindow() == window())
269 client::CursorClient* cursor_client = client::GetCursorClient(window());
272 gfx::Screen::GetScreenFor(window())->GetDisplayNearestWindow(window());