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

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

Issue 2745143004: Inform window manager about modal windows in mus+ash. (Closed)
Patch Set: . Created 3 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 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>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // A client requested the shared property named |name| to change to 85 // A client requested the shared property named |name| to change to
86 // |new_data|. Return true to allow the change to |new_data|, false 86 // |new_data|. Return true to allow the change to |new_data|, false
87 // otherwise. If true is returned the property is set via 87 // otherwise. If true is returned the property is set via
88 // PropertyConverter::SetPropertyFromTransportValue(). 88 // PropertyConverter::SetPropertyFromTransportValue().
89 virtual bool OnWmSetProperty( 89 virtual bool OnWmSetProperty(
90 Window* window, 90 Window* window,
91 const std::string& name, 91 const std::string& name,
92 std::unique_ptr<std::vector<uint8_t>>* new_data) = 0; 92 std::unique_ptr<std::vector<uint8_t>>* new_data) = 0;
93 93
94 // A client requested modal type of |window| changed to |type|. Return true to
95 // allow the change to |type|, false otherwise.
96 virtual bool OnWmSetModalType(Window* window, ui::ModalType type) = 0;
97
94 // A client requested to change focusibility of |window|. We currently assume 98 // A client requested to change focusibility of |window|. We currently assume
95 // this always succeeds. 99 // this always succeeds.
96 virtual void OnWmSetCanFocus(Window* window, bool can_focus) = 0; 100 virtual void OnWmSetCanFocus(Window* window, bool can_focus) = 0;
97 101
98 // A client has requested a new top level window. The delegate should create 102 // A client has requested a new top level window. The delegate should create
99 // and parent the window appropriately and return it. |properties| is the 103 // and parent the window appropriately and return it. |properties| is the
100 // supplied properties from the client requesting the new window. The 104 // supplied properties from the client requesting the new window. The
101 // delegate may modify |properties| before calling NewWindow(), but the 105 // delegate may modify |properties| before calling NewWindow(), but the
102 // delegate does *not* own |properties|, they are valid only for the life 106 // delegate does *not* own |properties|, they are valid only for the life
103 // of OnWmCreateTopLevelWindow(). |window_type| is the type of window 107 // of OnWmCreateTopLevelWindow(). |window_type| is the type of window
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // window. 160 // window.
157 virtual void OnWmDeactivateWindow(Window* window) = 0; 161 virtual void OnWmDeactivateWindow(Window* window) = 0;
158 162
159 protected: 163 protected:
160 virtual ~WindowManagerDelegate() {} 164 virtual ~WindowManagerDelegate() {}
161 }; 165 };
162 166
163 } // namespace ui 167 } // namespace ui
164 168
165 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ 169 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698