ca999a36c67b254d91c43939f3d636d0c2c8ac33
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / wm / manager.h
1 /*
2  * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3, as published
6  * by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranties of
10  * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11  * PURPOSE.  See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program.  If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17
18 #ifndef ANBOX_WM_MANAGER_H_
19 #define ANBOX_WM_MANAGER_H_
20
21 #include "anbox/wm/window.h"
22 #include "anbox/wm/window_state.h"
23
24 #include <map>
25 #include <memory>
26 #include <mutex>
27
28 namespace anbox {
29 namespace wm {
30 class Manager {
31  public:
32   virtual ~Manager();
33
34   virtual void setup() {}
35
36   virtual void apply_window_state_update(const WindowState::List &updated, const WindowState::List &removed) = 0;
37
38   virtual void resize_task(const Task::Id &task, const anbox::graphics::Rect &rect,
39                            const std::int32_t &resize_mode) = 0;
40   virtual void set_focused_task(const Task::Id &task) = 0;
41   virtual void remove_task(const Task::Id &task) = 0;
42
43   // FIXME only applies for the multi-window case
44   virtual std::shared_ptr<Window> find_window_for_task(const Task::Id &task) = 0;
45 };
46 }  // namespace wm
47 }  // namespace anbox
48
49 #endif