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_NATIVE_WINDOW_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WINDOW_H_ |
6 #define VIEWS_WIDGET_NATIVE_WINDOW_H_ | 6 #define VIEWS_WIDGET_NATIVE_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/base/accessibility/accessibility_types.h" | 9 #include "ui/base/accessibility/accessibility_types.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 internal::NativeWindowDelegate* delegate); | 37 internal::NativeWindowDelegate* delegate); |
38 | 38 |
39 virtual Window* GetWindow() = 0; | 39 virtual Window* GetWindow() = 0; |
40 virtual const Window* GetWindow() const = 0; | 40 virtual const Window* GetWindow() const = 0; |
41 | 41 |
42 virtual NativeWidget* AsNativeWidget() = 0; | 42 virtual NativeWidget* AsNativeWidget() = 0; |
43 virtual const NativeWidget* AsNativeWidget() const = 0; | 43 virtual const NativeWidget* AsNativeWidget() const = 0; |
44 | 44 |
45 protected: | 45 protected: |
46 friend class Window; | 46 friend class Window; |
47 | |
48 // Makes the NativeWindow modal. | |
49 virtual void BecomeModal() = 0; | |
50 }; | 47 }; |
51 | 48 |
52 } // namespace views | 49 } // namespace views |
53 | 50 |
54 #endif // VIEWS_WIDGET_NATIVE_WINDOW_H_ | 51 #endif // VIEWS_WIDGET_NATIVE_WINDOW_H_ |
OLD | NEW |