Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: components/mus/public/cpp/window_manager_delegate.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "components/mus/public/interfaces/cursor.mojom.h" 16 #include "components/mus/public/interfaces/cursor.mojom.h"
17 #include "components/mus/public/interfaces/event_matcher.mojom.h" 17 #include "components/mus/public/interfaces/event_matcher.mojom.h"
18 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 18 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
19 #include "ui/events/mojo/event.mojom.h" 19 #include "ui/events/mojo/event.mojom.h"
20 20
21 namespace display {
22 class Display;
23 }
24
21 namespace gfx { 25 namespace gfx {
22 class Insets; 26 class Insets;
23 class Rect; 27 class Rect;
24 class Vector2d; 28 class Vector2d;
25 } 29 }
26 30
27 namespace ui { 31 namespace ui {
28 class Event; 32 class Event;
29 } 33 }
30 34
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // of OnWmCreateTopLevelWindow(). 93 // of OnWmCreateTopLevelWindow().
90 virtual Window* OnWmCreateTopLevelWindow( 94 virtual Window* OnWmCreateTopLevelWindow(
91 std::map<std::string, std::vector<uint8_t>>* properties) = 0; 95 std::map<std::string, std::vector<uint8_t>>* properties) = 0;
92 96
93 // Called when a Mus client's jankiness changes. |windows| is the set of 97 // Called when a Mus client's jankiness changes. |windows| is the set of
94 // windows owned by the window manager in which the client is embedded. 98 // windows owned by the window manager in which the client is embedded.
95 virtual void OnWmClientJankinessChanged( 99 virtual void OnWmClientJankinessChanged(
96 const std::set<Window*>& client_windows, 100 const std::set<Window*>& client_windows,
97 bool janky) = 0; 101 bool janky) = 0;
98 102
103 // Called when a display is added. |window| is the root of the window tree for
104 // the specified display.
105 virtual void OnWmNewDisplay(Window* window,
106 const display::Display& display) = 0;
107
99 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; 108 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0;
100 109
101 protected: 110 protected:
102 virtual ~WindowManagerDelegate() {} 111 virtual ~WindowManagerDelegate() {}
103 }; 112 };
104 113
105 } // namespace mus 114 } // namespace mus
106 115
107 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 116 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_private.cc ('k') | components/mus/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698