Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: ui/views/widget/native_widget_private.h

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/string16.h" 8 #include "base/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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given 57 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given
58 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it. 58 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it.
59 static NativeWidgetPrivate* GetTopLevelNativeWidget( 59 static NativeWidgetPrivate* GetTopLevelNativeWidget(
60 gfx::NativeView native_view); 60 gfx::NativeView native_view);
61 61
62 static void GetAllChildWidgets(gfx::NativeView native_view, 62 static void GetAllChildWidgets(gfx::NativeView native_view,
63 Widget::Widgets* children); 63 Widget::Widgets* children);
64 static void ReparentNativeView(gfx::NativeView native_view, 64 static void ReparentNativeView(gfx::NativeView native_view,
65 gfx::NativeView new_parent); 65 gfx::NativeView new_parent);
66 66
67 // Reorder the child layers of |parent| so that their order matches the order
68 // the order of views with layers / views with attached layers in |root_view|.
69 static void ReorderLayers(gfx::NativeView parent, View* root_view);
70
67 // Returns true if any mouse button is currently down. 71 // Returns true if any mouse button is currently down.
68 static bool IsMouseButtonDown(); 72 static bool IsMouseButtonDown();
69 73
70 // Returns true if any touch device is currently down. 74 // Returns true if any touch device is currently down.
71 static bool IsTouchDown(); 75 static bool IsTouchDown();
72 76
73 // Initializes the NativeWidget. 77 // Initializes the NativeWidget.
74 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; 78 virtual void InitNativeWidget(const Widget::InitParams& params) = 0;
75 79
76 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if 80 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 virtual ui::NativeTheme* GetNativeTheme() const = 0; 210 virtual ui::NativeTheme* GetNativeTheme() const = 0;
207 211
208 // Overridden from NativeWidget: 212 // Overridden from NativeWidget:
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 213 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
210 }; 214 };
211 215
212 } // namespace internal 216 } // namespace internal
213 } // namespace views 217 } // namespace views
214 218
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 219 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698