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

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: Rebase to tot 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder_mus.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f4dd993de2343de60b7de5c11323406e87a7263c..2cdb0d4f764060c0851fc3d5acd3543121eddfd7 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 ui::InputEventHandler:
@@ -264,6 +267,11 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
// 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_;
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder_mus.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698