blob: cace19809c7d8f228462746691e9ef8f00a0498f (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// Copyright 2015 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/platform_window/stub/stub_window.h"
#include "ui/platform_window/platform_window_delegate.h"
namespace ui {
StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) {
delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f);
}
StubWindow::~StubWindow() {
}
void StubWindow::Show() {
}
void StubWindow::Hide() {
}
void StubWindow::Close() {
delegate_->OnClosed();
}
void StubWindow::SetBounds(const gfx::Rect& bounds) {
if (bounds_ == bounds)
return;
bounds_ = bounds;
delegate_->OnBoundsChanged(bounds);
}
gfx::Rect StubWindow::GetBounds() {
return bounds_;
}
void StubWindow::SetCapture() {
}
void StubWindow::ReleaseCapture() {
}
void StubWindow::ToggleFullscreen() {
}
void StubWindow::Maximize() {
}
void StubWindow::Minimize() {
}
void StubWindow::Restore() {
}
void StubWindow::SetCursor(PlatformCursor cursor) {
}
void StubWindow::MoveCursorTo(const gfx::Point& location) {
}
void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) {
}
} // namespace ui
|