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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1023083002: [MacViews] Implement size constraints for app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update ui/gfx/BUILD.gn Created 5 years, 8 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
« no previous file with comments | « ui/gfx/mac/nswindow_frame_controls.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Explicitly set the visibility. This is called when Cocoa requests a draw, 118 // Explicitly set the visibility. This is called when Cocoa requests a draw,
119 // but hasn't updated the value of -[NSWindow isVisible] yet. 119 // but hasn't updated the value of -[NSWindow isVisible] yet.
120 void OnVisibilityChangedTo(bool new_visibility); 120 void OnVisibilityChangedTo(bool new_visibility);
121 121
122 // Called by the NSWindowDelegate on a scale factor or color space change. 122 // Called by the NSWindowDelegate on a scale factor or color space change.
123 void OnBackingPropertiesChanged(); 123 void OnBackingPropertiesChanged();
124 124
125 // Called by the NSWindowDelegate when the window becomes or resigns key. 125 // Called by the NSWindowDelegate when the window becomes or resigns key.
126 void OnWindowKeyStatusChangedTo(bool is_key); 126 void OnWindowKeyStatusChangedTo(bool is_key);
127 127
128 // Called by NativeWidgetMac when the window size constraints change.
129 void OnSizeConstraintsChanged();
130
128 // See widget.h for documentation. 131 // See widget.h for documentation.
129 InputMethod* CreateInputMethod(); 132 InputMethod* CreateInputMethod();
130 ui::InputMethod* GetHostInputMethod(); 133 ui::InputMethod* GetHostInputMethod();
131 134
132 // The restored bounds will be derived from the current NSWindow frame unless 135 // The restored bounds will be derived from the current NSWindow frame unless
133 // fullscreen or transitioning between fullscreen states. 136 // fullscreen or transitioning between fullscreen states.
134 gfx::Rect GetRestoredBounds() const; 137 gfx::Rect GetRestoredBounds() const;
135 138
136 // Creates a ui::Compositor which becomes responsible for drawing the window. 139 // Creates a ui::Compositor which becomes responsible for drawing the window.
137 void CreateLayer(ui::LayerType layer_type, bool translucent); 140 void CreateLayer(ui::LayerType layer_type, bool translucent);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // If true, the window is either visible, or wants to be visible but is 248 // If true, the window is either visible, or wants to be visible but is
246 // currently hidden due to having a hidden parent. 249 // currently hidden due to having a hidden parent.
247 bool wants_to_be_visible_; 250 bool wants_to_be_visible_;
248 251
249 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 252 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
250 }; 253 };
251 254
252 } // namespace views 255 } // namespace views
253 256
254 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 257 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/gfx/mac/nswindow_frame_controls.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698