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

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

Issue 1051953003: Revert of [MacViews] Implement size constraints for app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
131 // See widget.h for documentation. 128 // See widget.h for documentation.
132 InputMethod* CreateInputMethod(); 129 InputMethod* CreateInputMethod();
133 ui::InputMethod* GetHostInputMethod(); 130 ui::InputMethod* GetHostInputMethod();
134 131
135 // The restored bounds will be derived from the current NSWindow frame unless 132 // The restored bounds will be derived from the current NSWindow frame unless
136 // fullscreen or transitioning between fullscreen states. 133 // fullscreen or transitioning between fullscreen states.
137 gfx::Rect GetRestoredBounds() const; 134 gfx::Rect GetRestoredBounds() const;
138 135
139 // Creates a ui::Compositor which becomes responsible for drawing the window. 136 // Creates a ui::Compositor which becomes responsible for drawing the window.
140 void CreateLayer(ui::LayerType layer_type, bool translucent); 137 void CreateLayer(ui::LayerType layer_type, bool translucent);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // If true, the window is either visible, or wants to be visible but is 245 // If true, the window is either visible, or wants to be visible but is
249 // currently hidden due to having a hidden parent. 246 // currently hidden due to having a hidden parent.
250 bool wants_to_be_visible_; 247 bool wants_to_be_visible_;
251 248
252 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 249 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
253 }; 250 };
254 251
255 } // namespace views 252 } // namespace views
256 253
257 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 254 #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