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

Side by Side Diff: ui/aura/mus/window_manager_delegate.h

Issue 2689283003: chromeos: removes underlay surface offset (Closed)
Patch Set: log error Created 3 years, 10 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
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 6 #define UI_AURA_MUS_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 "services/ui/public/interfaces/cursor.mojom.h" 16 #include "services/ui/public/interfaces/cursor.mojom.h"
17 #include "services/ui/public/interfaces/window_manager.mojom.h" 17 #include "services/ui/public/interfaces/window_manager.mojom.h"
18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" 18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h"
19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" 19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
20 #include "ui/aura/aura_export.h" 20 #include "ui/aura/aura_export.h"
21 #include "ui/events/mojo/event.mojom.h" 21 #include "ui/events/mojo/event.mojom.h"
22 22
23 namespace display { 23 namespace display {
24 class Display; 24 class Display;
25 } 25 }
26 26
27 namespace gfx { 27 namespace gfx {
28 class Insets; 28 class Insets;
29 class Rect; 29 class Rect;
30 class Vector2d;
31 } 30 }
32 31
33 namespace ui { 32 namespace ui {
34 class Event; 33 class Event;
35 } 34 }
36 35
37 namespace aura { 36 namespace aura {
38 37
39 class Window; 38 class Window;
40 class WindowTreeHostMus; 39 class WindowTreeHostMus;
41 40
42 // See the mojom with the same name for details on the functions in this 41 // See the mojom with the same name for details on the functions in this
43 // interface. 42 // interface.
44 class AURA_EXPORT WindowManagerClient { 43 class AURA_EXPORT WindowManagerClient {
45 public: 44 public:
46 virtual void SetFrameDecorationValues( 45 virtual void SetFrameDecorationValues(
47 ui::mojom::FrameDecorationValuesPtr values) = 0; 46 ui::mojom::FrameDecorationValuesPtr values) = 0;
48 virtual void SetNonClientCursor(Window* window, 47 virtual void SetNonClientCursor(Window* window,
49 ui::mojom::Cursor non_client_cursor) = 0; 48 ui::mojom::Cursor non_client_cursor) = 0;
50 49
51 virtual void AddAccelerators( 50 virtual void AddAccelerators(
52 std::vector<ui::mojom::AcceleratorPtr> accelerators, 51 std::vector<ui::mojom::AcceleratorPtr> accelerators,
53 const base::Callback<void(bool)>& callback) = 0; 52 const base::Callback<void(bool)>& callback) = 0;
54 virtual void RemoveAccelerator(uint32_t id) = 0; 53 virtual void RemoveAccelerator(uint32_t id) = 0;
55 virtual void AddActivationParent(Window* window) = 0; 54 virtual void AddActivationParent(Window* window) = 0;
56 virtual void RemoveActivationParent(Window* window) = 0; 55 virtual void RemoveActivationParent(Window* window) = 0;
57 virtual void ActivateNextWindow() = 0; 56 virtual void ActivateNextWindow() = 0;
58 virtual void SetUnderlaySurfaceOffsetAndExtendedHitArea( 57 virtual void SetExtendedHitArea(Window* window,
59 Window* window, 58 const gfx::Insets& hit_area) = 0;
60 const gfx::Vector2d& offset,
61 const gfx::Insets& hit_area) = 0;
62 59
63 // Requests the client embedded in |window| to close the window. Only 60 // Requests the client embedded in |window| to close the window. Only
64 // applicable to top-level windows. If a client is not embedded in |window|, 61 // applicable to top-level windows. If a client is not embedded in |window|,
65 // this does nothing. 62 // this does nothing.
66 virtual void RequestClose(Window* window) = 0; 63 virtual void RequestClose(Window* window) = 0;
67 64
68 protected: 65 protected:
69 virtual ~WindowManagerClient() {} 66 virtual ~WindowManagerClient() {}
70 }; 67 };
71 68
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // window. 156 // window.
160 virtual void OnWmDeactivateWindow(Window* window) = 0; 157 virtual void OnWmDeactivateWindow(Window* window) = 0;
161 158
162 protected: 159 protected:
163 virtual ~WindowManagerDelegate() {} 160 virtual ~WindowManagerDelegate() {}
164 }; 161 };
165 162
166 } // namespace ui 163 } // namespace ui
167 164
168 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 165 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698