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

Side by Side Diff: services/ui/public/cpp/window.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: Only set accept_events when it's false 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_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 const EmbedCallback& callback, 218 const EmbedCallback& callback,
219 uint32_t flags = 0); 219 uint32_t flags = 0);
220 220
221 // TODO(sky): this API is only applicable to the WindowManager. Move it 221 // TODO(sky): this API is only applicable to the WindowManager. Move it
222 // to a better place. 222 // to a better place.
223 void RequestClose(); 223 void RequestClose();
224 224
225 // Returns an internal name, set by a client app when it creates a window. 225 // Returns an internal name, set by a client app when it creates a window.
226 std::string GetName() const; 226 std::string GetName() const;
227 227
228 void SetAcceptEvents(bool accept_events);
sky 2016/07/06 16:21:25 nit: this is a bad location as GetName is more deb
riajiang 2016/07/08 17:59:59 Done.
229
228 protected: 230 protected:
229 // This class is subclassed only by test classes that provide a public ctor. 231 // This class is subclassed only by test classes that provide a public ctor.
230 Window(); 232 Window();
231 ~Window(); 233 ~Window();
232 234
233 private: 235 private:
234 friend class WindowPrivate; 236 friend class WindowPrivate;
235 friend class WindowTreeClient; 237 friend class WindowTreeClient;
236 friend class WindowTreeClientPrivate; 238 friend class WindowTreeClientPrivate;
237 239
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 }; 349 };
348 350
349 std::map<const void*, Value> prop_map_; 351 std::map<const void*, Value> prop_map_;
350 352
351 DISALLOW_COPY_AND_ASSIGN(Window); 353 DISALLOW_COPY_AND_ASSIGN(Window);
352 }; 354 };
353 355
354 } // namespace ui 356 } // namespace ui
355 357
356 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 358 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698