forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer_fullscreen_behavior.cc
42 lines (31 loc) · 1.19 KB
/
container_fullscreen_behavior.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/keyboard/container_fullscreen_behavior.h"
#include "ui/aura/window.h"
namespace keyboard {
ContainerFullscreenBehavior::ContainerFullscreenBehavior(Delegate* delegate)
: ContainerFullWidthBehavior(delegate) {}
ContainerFullscreenBehavior::~ContainerFullscreenBehavior() {}
gfx::Rect ContainerFullscreenBehavior::AdjustSetBoundsRequest(
const gfx::Rect& display_bounds,
const gfx::Rect& requested_bounds_in_screen_coords) {
return display_bounds;
}
void ContainerFullscreenBehavior::SetCanonicalBounds(
aura::Window* container,
const gfx::Rect& display_bounds) {
container->SetBounds(display_bounds);
}
gfx::Rect ContainerFullscreenBehavior::GetOccludedBounds(
const gfx::Rect& visual_bounds_in_screen) const {
return occluded_bounds_;
}
ContainerType ContainerFullscreenBehavior::GetType() const {
return ContainerType::FULLSCREEN;
}
void ContainerFullscreenBehavior::SetOccludedBounds(
const gfx::Rect& occluded_bounds) {
occluded_bounds_ = occluded_bounds;
}
} // namespace keyboard