Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 public: | 87 public: |
| 88 enum FrameType { | 88 enum FrameType { |
| 89 FRAME_TYPE_DEFAULT, // Use whatever the default would be. | 89 FRAME_TYPE_DEFAULT, // Use whatever the default would be. |
| 90 FRAME_TYPE_FORCE_CUSTOM, // Force the custom frame. | 90 FRAME_TYPE_FORCE_CUSTOM, // Force the custom frame. |
| 91 FRAME_TYPE_FORCE_NATIVE // Force the native frame. | 91 FRAME_TYPE_FORCE_NATIVE // Force the native frame. |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 struct InitParams { | 94 struct InitParams { |
| 95 enum Type { | 95 enum Type { |
| 96 TYPE_WINDOW, // A Window, like a frame window. | 96 TYPE_WINDOW, // A Window, like a frame window. |
| 97 TYPE_WINDOW_FRAMELESS, | |
|
Daniel Erat
2011/06/09 05:40:22
Naming suggestion: TYPE_WINDOW_UNMANAGED? That's
Daniel Erat
2011/06/09 11:23:43
Whoops, disregard this, of course. For some reaso
| |
| 98 // An undecorated Window. | |
| 97 TYPE_CONTROL, // A control, like a button. | 99 TYPE_CONTROL, // A control, like a button. |
| 98 TYPE_POPUP, // An undecorated Window, with transient properties. | 100 TYPE_POPUP, // An undecorated Window, with transient properties. |
| 99 TYPE_MENU // An undecorated Window, with transient properties | 101 TYPE_MENU // An undecorated Window, with transient properties |
| 100 // specialized to menus. | 102 // specialized to menus. |
| 101 }; | 103 }; |
| 102 enum Ownership { | 104 enum Ownership { |
| 103 // Default. Creator is not responsible for managing the lifetime of the | 105 // Default. Creator is not responsible for managing the lifetime of the |
| 104 // Widget, it is destroyed when the corresponding NativeWidget is | 106 // Widget, it is destroyed when the corresponding NativeWidget is |
| 105 // destroyed. | 107 // destroyed. |
| 106 NATIVE_WIDGET_OWNS_WIDGET, | 108 NATIVE_WIDGET_OWNS_WIDGET, |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 565 | 567 |
| 566 // Set to true if the widget is in the process of closing. | 568 // Set to true if the widget is in the process of closing. |
| 567 bool widget_closed_; | 569 bool widget_closed_; |
| 568 | 570 |
| 569 DISALLOW_COPY_AND_ASSIGN(Widget); | 571 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 570 }; | 572 }; |
| 571 | 573 |
| 572 } // namespace views | 574 } // namespace views |
| 573 | 575 |
| 574 #endif // VIEWS_WIDGET_WIDGET_H_ | 576 #endif // VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |