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_DELEGATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ |
6 #define VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 class ThemeProvider; | 10 class ThemeProvider; |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 virtual bool IsInactiveRenderingDisabled() const = 0; | 29 virtual bool IsInactiveRenderingDisabled() const = 0; |
30 virtual void EnableInactiveRendering() = 0; | 30 virtual void EnableInactiveRendering() = 0; |
31 | 31 |
32 // Returns true if the window is modal. | 32 // Returns true if the window is modal. |
33 virtual bool IsModal() const = 0; | 33 virtual bool IsModal() const = 0; |
34 | 34 |
35 // Returns true if the window is a dialog box. | 35 // Returns true if the window is a dialog box. |
36 virtual bool IsDialogBox() const = 0; | 36 virtual bool IsDialogBox() const = 0; |
37 | 37 |
| 38 // Returns true if the window is using a system native frame. Returns false if |
| 39 // it is rendering its own title bar, borders and controls. |
| 40 virtual bool IsUsingNativeFrame() const = 0; |
| 41 |
38 // Returns the smallest size the window can be resized to by the user. | 42 // Returns the smallest size the window can be resized to by the user. |
39 virtual gfx::Size GetMinimumSize() const = 0; | 43 virtual gfx::Size GetMinimumSize() const = 0; |
40 | 44 |
41 // Returns the non-client component (see views/window/hit_test.h) containing | 45 // Returns the non-client component (see views/window/hit_test.h) containing |
42 // |point|, in client coordinates. | 46 // |point|, in client coordinates. |
43 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; | 47 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; |
44 | 48 |
45 // Runs the specified native command. Returns true if the command is handled. | 49 // Runs the specified native command. Returns true if the command is handled. |
46 virtual bool ExecuteCommand(int command_id) = 0; | 50 virtual bool ExecuteCommand(int command_id) = 0; |
47 | 51 |
(...skipping 21 matching lines...) Expand all Loading... |
69 virtual Window* AsWindow() = 0; | 73 virtual Window* AsWindow() = 0; |
70 | 74 |
71 // | 75 // |
72 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; | 76 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; |
73 }; | 77 }; |
74 | 78 |
75 } // namespace internal | 79 } // namespace internal |
76 } // namespace views | 80 } // namespace views |
77 | 81 |
78 #endif // VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ | 82 #endif // VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ |
OLD | NEW |