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

Side by Side Diff: services/ui/public/cpp/window_tree_client.h

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move can_accept_events_ to ui::Window; check if top window can accept events. Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Windows are initially hidden, use SetVisible(true) to show. 196 // Windows are initially hidden, use SetVisible(true) to show.
197 Window* NewWindow() { return NewWindow(nullptr); } 197 Window* NewWindow() { return NewWindow(nullptr); }
198 Window* NewWindow( 198 Window* NewWindow(
199 const std::map<std::string, std::vector<uint8_t>>* properties); 199 const std::map<std::string, std::vector<uint8_t>>* properties);
200 Window* NewTopLevelWindow( 200 Window* NewTopLevelWindow(
201 const std::map<std::string, std::vector<uint8_t>>* properties); 201 const std::map<std::string, std::vector<uint8_t>>* properties);
202 202
203 void AddObserver(WindowTreeClientObserver* observer); 203 void AddObserver(WindowTreeClientObserver* observer);
204 void RemoveObserver(WindowTreeClientObserver* observer); 204 void RemoveObserver(WindowTreeClientObserver* observer);
205 205
206 void SetCanAcceptEvents(Id window_id, bool can_accept_events);
sadrul 2016/07/12 19:44:19 Move above, close to SetCanFocus()
riajiang 2016/07/12 20:51:40 Done.
207
206 #if !defined(NDEBUG) 208 #if !defined(NDEBUG)
207 std::string GetDebugWindowHierarchy() const; 209 std::string GetDebugWindowHierarchy() const;
208 void BuildDebugInfo(const std::string& depth, 210 void BuildDebugInfo(const std::string& depth,
209 Window* window, 211 Window* window,
210 std::string* result) const; 212 std::string* result) const;
211 #endif 213 #endif
212 214
213 private: 215 private:
214 friend class WindowTreeClientPrivate; 216 friend class WindowTreeClientPrivate;
215 217
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 base::Callback<void(bool)> on_current_move_finished_; 431 base::Callback<void(bool)> on_current_move_finished_;
430 432
431 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 433 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
432 434
433 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 435 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
434 }; 436 };
435 437
436 } // namespace ui 438 } // namespace ui
437 439
438 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 440 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698