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
ash / keyboard / ui / queued_display_change.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_KEYBOARD_UI_QUEUED_DISPLAY_CHANGE_H_
#define ASH_KEYBOARD_UI_QUEUED_DISPLAY_CHANGE_H_
#include "base/functional/bind.h"
#include "ui/display/display.h"
#include "ui/gfx/geometry/rect.h"
namespace keyboard {
// TODO(shend): refactor and merge this into QueuedContainerType and rename it
// to something like QueuedVisualChange or similar.
class QueuedDisplayChange {
public:
QueuedDisplayChange(const display::Display& display,
const gfx::Rect& new_bounds_in_local);
~QueuedDisplayChange();
display::Display new_display() { return new_display_; }
gfx::Rect new_bounds_in_local() { return new_bounds_in_local_; }
private:
display::Display new_display_;
gfx::Rect new_bounds_in_local_;
};
} // namespace keyboard
#endif // ASH_KEYBOARD_UI_QUEUED_DISPLAY_CHANGE_H_