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

Unified Diff: ui/views/cocoa/bridged_native_widget.h

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With SetNativeWindowProperty Created 5 years, 12 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 | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_native_widget.h
diff --git a/ui/views/cocoa/bridged_native_widget.h b/ui/views/cocoa/bridged_native_widget.h
index adb232cd1406583e88e9a0ab30d3508906e26fba..bf78540679487f804931a7372a0f10d333fe3cb2 100644
--- a/ui/views/cocoa/bridged_native_widget.h
+++ b/ui/views/cocoa/bridged_native_widget.h
@@ -79,6 +79,10 @@ class VIEWS_EXPORT BridgedNativeWidget : public ui::LayerDelegate,
void ReleaseCapture();
bool HasCapture();
+ // See views::Widget.
+ void SetNativeWindowProperty(const char* key, void* value);
+ void* GetNativeWindowProperty(const char* key) const;
+
// Called internally by the NSWindowDelegate when the window is closing.
void OnWindowWillClose();
@@ -171,6 +175,10 @@ class VIEWS_EXPORT BridgedNativeWidget : public ui::LayerDelegate,
void PostCapturedEvent(NSEvent* event) override;
void OnMouseCaptureLost() override;
+ // Returns a properties dictionary associated with the NSWindow.
+ // Creates and attaches a new instance if not found.
+ NSMutableDictionary* GetWindowProperties() const;
+
// Overridden from FocusChangeListener:
void OnWillChangeFocus(View* focused_before,
View* focused_now) override;
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698