| 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_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 static bool IsTouchDown(); | 73 static bool IsTouchDown(); |
| 74 | 74 |
| 75 // Initializes the NativeWidget. | 75 // Initializes the NativeWidget. |
| 76 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; | 76 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; |
| 77 | 77 |
| 78 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if | 78 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if |
| 79 // the NativeWidget wants no special NonClientFrameView. | 79 // the NativeWidget wants no special NonClientFrameView. |
| 80 virtual NonClientFrameView* CreateNonClientFrameView() = 0; | 80 virtual NonClientFrameView* CreateNonClientFrameView() = 0; |
| 81 | 81 |
| 82 virtual bool ShouldUseNativeFrame() const = 0; | 82 virtual bool ShouldUseNativeFrame() const = 0; |
| 83 virtual void FrameTypeChanged() = 0; | 83 virtual void FrameTypeChanged(Widget::FrameType new_type) = 0; |
| 84 | 84 |
| 85 // Returns the Widget associated with this NativeWidget. This function is | 85 // Returns the Widget associated with this NativeWidget. This function is |
| 86 // guaranteed to return non-NULL for the lifetime of the NativeWidget. | 86 // guaranteed to return non-NULL for the lifetime of the NativeWidget. |
| 87 virtual Widget* GetWidget() = 0; | 87 virtual Widget* GetWidget() = 0; |
| 88 virtual const Widget* GetWidget() const = 0; | 88 virtual const Widget* GetWidget() const = 0; |
| 89 | 89 |
| 90 // Returns the NativeView/Window associated with this NativeWidget. | 90 // Returns the NativeView/Window associated with this NativeWidget. |
| 91 virtual gfx::NativeView GetNativeView() const = 0; | 91 virtual gfx::NativeView GetNativeView() const = 0; |
| 92 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 92 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
| 93 | 93 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 // Overridden from NativeWidget: | 221 // Overridden from NativeWidget: |
| 222 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 222 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 223 virtual ui::EventHandler* GetEventHandler() = 0; | 223 virtual ui::EventHandler* GetEventHandler() = 0; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace internal | 226 } // namespace internal |
| 227 } // namespace views | 227 } // namespace views |
| 228 | 228 |
| 229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |