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

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

Issue 2099513003: mus: Use the new drag API to implement tab dragging in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dragging-part-1
Patch Set: Add some more comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/mus/native_widget_mus.h
diff --git a/ui/views/mus/native_widget_mus.h b/ui/views/mus/native_widget_mus.h
index 33da5378358e1cc3cbb3d1b975ea63e7f065474c..1af85925092e317e8dfcdba66f56a9f04e859148 100644
--- a/ui/views/mus/native_widget_mus.h
+++ b/ui/views/mus/native_widget_mus.h
@@ -220,6 +220,9 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
void OnGestureEvent(ui::GestureEvent* event) override;
// Overridden from aura::WindowTreeHostObserver:
+ void OnHostResized(const aura::WindowTreeHost* host) override;
+ void OnHostMoved(const aura::WindowTreeHost* host,
+ const gfx::Point& new_origin) override;
void OnHostCloseRequested(const aura::WindowTreeHost* host) override;
// Overridden from mus::InputEventHandler:
@@ -264,6 +267,11 @@ private:
// a separate class.
std::unique_ptr<MusWindowObserver> mus_window_observer_;
+ // This is misnamed; The native widget interface offers something called
+ // "native window properties" which are properties which it stores locally,
+ // and this is used to unsafely pass void* pointers around chrome.
+ std::map<std::string, void*> native_window_properties_;
+
// Aura configuration.
std::unique_ptr<SurfaceContextFactory> context_factory_;
std::unique_ptr<WindowTreeHostMus> window_tree_host_;

Powered by Google App Engine
This is Rietveld 408576698