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

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

Issue 1814533002: Use ui::Event instead of mojom::EventPtr in mash/wm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_eventptr
Patch Set: Created 4 years, 9 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 <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "components/mus/public/interfaces/input_event_matcher.mojom.h" 15 #include "components/mus/public/interfaces/input_event_matcher.mojom.h"
16 #include "components/mus/public/interfaces/input_events.mojom.h" 16 #include "components/mus/public/interfaces/input_events.mojom.h"
17 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 17 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Insets; 20 class Insets;
21 class Rect; 21 class Rect;
22 class Vector2d; 22 class Vector2d;
23 } 23 }
24 24
25 namespace ui {
26 class Event;
27 }
28
25 namespace mus { 29 namespace mus {
26 30
27 class Window; 31 class Window;
28 32
29 // See the mojom with the same name for details on the functions in this 33 // See the mojom with the same name for details on the functions in this
30 // interface. 34 // interface.
31 class WindowManagerClient { 35 class WindowManagerClient {
32 public: 36 public:
33 virtual void SetFrameDecorationValues( 37 virtual void SetFrameDecorationValues(
34 mojom::FrameDecorationValuesPtr values) = 0; 38 mojom::FrameDecorationValuesPtr values) = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 78
75 // A client has requested a new top level window. The delegate should create 79 // A client has requested a new top level window. The delegate should create
76 // and parent the window appropriately and return it. |properties| is the 80 // and parent the window appropriately and return it. |properties| is the
77 // supplied properties from the client requesting the new window. The 81 // supplied properties from the client requesting the new window. The
78 // delegate may modify |properties| before calling NewWindow(), but the 82 // delegate may modify |properties| before calling NewWindow(), but the
79 // delegate does *not* own |properties|, they are valid only for the life 83 // delegate does *not* own |properties|, they are valid only for the life
80 // of OnWmCreateTopLevelWindow(). 84 // of OnWmCreateTopLevelWindow().
81 virtual Window* OnWmCreateTopLevelWindow( 85 virtual Window* OnWmCreateTopLevelWindow(
82 std::map<std::string, std::vector<uint8_t>>* properties) = 0; 86 std::map<std::string, std::vector<uint8_t>>* properties) = 0;
83 87
84 virtual void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) = 0; 88 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0;
85 89
86 protected: 90 protected:
87 virtual ~WindowManagerDelegate() {} 91 virtual ~WindowManagerDelegate() {}
88 }; 92 };
89 93
90 } // namespace mus 94 } // namespace mus
91 95
92 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 96 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/window_server_test_base.cc ('k') | components/mus/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698