| 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_WIDGET_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
| 6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 584 |
| 585 // Creates an appropriate NonClientFrameView for this widget. The | 585 // Creates an appropriate NonClientFrameView for this widget. The |
| 586 // WidgetDelegate is given the first opportunity to create one, followed by | 586 // WidgetDelegate is given the first opportunity to create one, followed by |
| 587 // the NativeWidget implementation. If both return NULL, a default one is | 587 // the NativeWidget implementation. If both return NULL, a default one is |
| 588 // created. | 588 // created. |
| 589 virtual NonClientFrameView* CreateNonClientFrameView(); | 589 virtual NonClientFrameView* CreateNonClientFrameView(); |
| 590 | 590 |
| 591 // Whether we should be using a native frame. | 591 // Whether we should be using a native frame. |
| 592 bool ShouldUseNativeFrame() const; | 592 bool ShouldUseNativeFrame() const; |
| 593 | 593 |
| 594 // Determines whether the window contents should be rendered transparently |
| 595 // (for example, so that they can overhang onto the window title bar). |
| 596 bool ShouldWindowContentsBeTransparent() const; |
| 597 |
| 594 // Forces the frame into the alternate frame type (custom or native) depending | 598 // Forces the frame into the alternate frame type (custom or native) depending |
| 595 // on its current state. | 599 // on its current state. |
| 596 void DebugToggleFrameType(); | 600 void DebugToggleFrameType(); |
| 597 | 601 |
| 598 // Tell the window that something caused the frame type to change. | 602 // Tell the window that something caused the frame type to change. |
| 599 void FrameTypeChanged(); | 603 void FrameTypeChanged(); |
| 600 | 604 |
| 601 NonClientView* non_client_view() { | 605 NonClientView* non_client_view() { |
| 602 return const_cast<NonClientView*>( | 606 return const_cast<NonClientView*>( |
| 603 const_cast<const Widget*>(this)->non_client_view()); | 607 const_cast<const Widget*>(this)->non_client_view()); |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 // True when window movement via mouse interaction with the frame should be | 886 // True when window movement via mouse interaction with the frame should be |
| 883 // disabled. | 887 // disabled. |
| 884 bool movement_disabled_; | 888 bool movement_disabled_; |
| 885 | 889 |
| 886 DISALLOW_COPY_AND_ASSIGN(Widget); | 890 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 887 }; | 891 }; |
| 888 | 892 |
| 889 } // namespace views | 893 } // namespace views |
| 890 | 894 |
| 891 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 895 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |