| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WINDOW_NON_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
| 9 #include "ui/views/window/client_view.h" | 9 #include "ui/views/window/client_view.h" |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Replaces the current NonClientFrameView (if any) with the specified one. | 143 // Replaces the current NonClientFrameView (if any) with the specified one. |
| 144 void SetFrameView(NonClientFrameView* frame_view); | 144 void SetFrameView(NonClientFrameView* frame_view); |
| 145 | 145 |
| 146 // Returns true if the ClientView determines that the containing window can be | 146 // Returns true if the ClientView determines that the containing window can be |
| 147 // closed, false otherwise. | 147 // closed, false otherwise. |
| 148 bool CanClose(); | 148 bool CanClose(); |
| 149 | 149 |
| 150 // Called by the containing Window when it is closed. | 150 // Called by the containing Window when it is closed. |
| 151 void WindowClosing(); | 151 void WindowClosing(); |
| 152 | 152 |
| 153 // Changes the frame from native to custom depending on the value of | 153 // Replaces the frame view with a new one. Used when switching window theme |
| 154 // |use_native_frame|. | 154 // or frame style. Pass true for |layout| to refresh the window layout (the |
| 155 void UpdateFrame(); | 155 // common case) or false if you will trigger layout yourself. |
| 156 void UpdateFrame(bool layout); |
| 156 | 157 |
| 157 // Prevents the window from being rendered as deactivated when |disable| is | 158 // Prevents the window from being rendered as deactivated when |disable| is |
| 158 // true, until called with |disable| false. Used when a sub-window is to be | 159 // true, until called with |disable| false. Used when a sub-window is to be |
| 159 // shown that shouldn't visually de-activate the window. | 160 // shown that shouldn't visually de-activate the window. |
| 160 // Subclasses can override this to perform additional actions when this value | 161 // Subclasses can override this to perform additional actions when this value |
| 161 // changes. | 162 // changes. |
| 162 void SetInactiveRenderingDisabled(bool disable); | 163 void SetInactiveRenderingDisabled(bool disable); |
| 163 | 164 |
| 164 // Returns the bounds of the window required to display the content area at | 165 // Returns the bounds of the window required to display the content area at |
| 165 // the specified bounds. | 166 // the specified bounds. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 // The accessible name of this view. | 228 // The accessible name of this view. |
| 228 string16 accessible_name_; | 229 string16 accessible_name_; |
| 229 | 230 |
| 230 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 231 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace views | 234 } // namespace views |
| 234 | 235 |
| 235 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 236 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| OLD | NEW |