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

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

Issue 2794001: Notification balloons don't want the WS_EX_LAYOUTRTL style flag, since the di... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: new naming, comment Created 10 years, 6 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "gfx/native_widget_types.h" 10 #include "gfx/native_widget_types.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 enum EventsParam { 57 enum EventsParam {
58 AcceptEvents, 58 AcceptEvents,
59 NotAcceptEvents 59 NotAcceptEvents
60 }; 60 };
61 61
62 enum DeleteParam { 62 enum DeleteParam {
63 DeleteOnDestroy, 63 DeleteOnDestroy,
64 NotDeleteOnDestroy 64 NotDeleteOnDestroy
65 }; 65 };
66 66
67 enum MirroringParam {
68 MirrorOriginInRTL,
69 DontMirrorOriginInRTL
70 };
71
67 // Creates a transient popup widget specific to the current platform. 72 // Creates a transient popup widget specific to the current platform.
73 // If |mirror_in_rtl| is set to MirrorOriginInRTL, the contents of the
74 // popup will be mirrored if the current locale is RTL. You should use
jeremy 2010/06/10 20:58:58 "the contents of the popup will be mirrored" -> Th
75 // DontMirrorOriginInRTL if you are aleady handling the RTL layout within
76 // the widget.
68 static Widget* CreatePopupWidget(TransparencyParam transparent, 77 static Widget* CreatePopupWidget(TransparencyParam transparent,
69 EventsParam accept_events, 78 EventsParam accept_events,
70 DeleteParam delete_on_destroy); 79 DeleteParam delete_on_destroy,
80 MirroringParam mirror_in_rtl);
idana 2010/06/16 13:46:16 Since almost all the call sites use MirrorOriginIn
71 81
72 // Returns the root view for |native_window|. If |native_window| does not have 82 // Returns the root view for |native_window|. If |native_window| does not have
73 // a rootview, this recurses through all of |native_window|'s children until 83 // a rootview, this recurses through all of |native_window|'s children until
74 // one is found. If a root view isn't found, null is returned. 84 // one is found. If a root view isn't found, null is returned.
75 static RootView* FindRootView(gfx::NativeWindow native_window); 85 static RootView* FindRootView(gfx::NativeWindow native_window);
76 86
77 // Returns list of all root views for the native window and its 87 // Returns list of all root views for the native window and its
78 // children. 88 // children.
79 static void FindAllRootViews(gfx::NativeWindow native_window, 89 static void FindAllRootViews(gfx::NativeWindow native_window,
80 std::vector<RootView*>* root_views); 90 std::vector<RootView*>* root_views);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 View *child) = 0; 217 View *child) = 0;
208 218
209 // Returns true if the native view |native_view| is contained in the 219 // Returns true if the native view |native_view| is contained in the
210 // views::View hierarchy rooted at this widget. 220 // views::View hierarchy rooted at this widget.
211 virtual bool ContainsNativeView(gfx::NativeView native_view) = 0; 221 virtual bool ContainsNativeView(gfx::NativeView native_view) = 0;
212 }; 222 };
213 223
214 } // namespace views 224 } // namespace views
215 225
216 #endif // VIEWS_WIDGET_WIDGET_H_ 226 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698