| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 gfx::NativeView native_view); | 61 gfx::NativeView native_view); |
| 62 | 62 |
| 63 static void GetAllChildWidgets(gfx::NativeView native_view, | 63 static void GetAllChildWidgets(gfx::NativeView native_view, |
| 64 Widget::Widgets* children); | 64 Widget::Widgets* children); |
| 65 static void ReparentNativeView(gfx::NativeView native_view, | 65 static void ReparentNativeView(gfx::NativeView native_view, |
| 66 gfx::NativeView new_parent); | 66 gfx::NativeView new_parent); |
| 67 | 67 |
| 68 // Returns true if any mouse button is currently down. | 68 // Returns true if any mouse button is currently down. |
| 69 static bool IsMouseButtonDown(); | 69 static bool IsMouseButtonDown(); |
| 70 | 70 |
| 71 // Returns true if any touch device is currently down. |
| 72 static bool IsTouchDown(); |
| 73 |
| 71 // Initializes the NativeWidget. | 74 // Initializes the NativeWidget. |
| 72 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; | 75 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; |
| 73 | 76 |
| 74 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if | 77 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if |
| 75 // the NativeWidget wants no special NonClientFrameView. | 78 // the NativeWidget wants no special NonClientFrameView. |
| 76 virtual NonClientFrameView* CreateNonClientFrameView() = 0; | 79 virtual NonClientFrameView* CreateNonClientFrameView() = 0; |
| 77 | 80 |
| 78 virtual void UpdateFrameAfterFrameChange() = 0; | 81 virtual void UpdateFrameAfterFrameChange() = 0; |
| 79 virtual bool ShouldUseNativeFrame() const = 0; | 82 virtual bool ShouldUseNativeFrame() const = 0; |
| 80 virtual void FrameTypeChanged() = 0; | 83 virtual void FrameTypeChanged() = 0; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 216 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
| 214 | 217 |
| 215 // Overridden from NativeWidget: | 218 // Overridden from NativeWidget: |
| 216 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 219 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 217 }; | 220 }; |
| 218 | 221 |
| 219 } // namespace internal | 222 } // namespace internal |
| 220 } // namespace views | 223 } // namespace views |
| 221 | 224 |
| 222 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 225 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |