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

Unified Diff: ui/views/mus/mus_client.h

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: Really fix compile Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/mus/mus_client.h
diff --git a/ui/views/mus/mus_client.h b/ui/views/mus/mus_client.h
index f19685c90e775ef0b2733d9fe8b0bd20c3f39d04..f6b95de752978da1704626fccdab225ffd4c89ca 100644
--- a/ui/views/mus/mus_client.h
+++ b/ui/views/mus/mus_client.h
@@ -37,6 +37,7 @@ class WMState;
namespace views {
+class MusClientObserver;
class ScreenMus;
namespace internal {
@@ -79,6 +80,9 @@ class VIEWS_MUS_EXPORT MusClient
NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params,
internal::NativeWidgetDelegate* delegate);
+ void AddObserver(MusClientObserver* observer);
+ void RemoveObserver(MusClientObserver* observer);
+
private:
friend class AuraInit;
friend class test::MusClientTestApi;
@@ -111,6 +115,8 @@ class VIEWS_MUS_EXPORT MusClient
service_manager::Connector* connector_;
service_manager::Identity identity_;
+ base::ObserverList<MusClientObserver> observer_list_;
+
std::unique_ptr<wm::WMState> wm_state_;
std::unique_ptr<ScreenMus> screen_;

Powered by Google App Engine
This is Rietveld 408576698