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

Side by Side Diff: views/widget/widget_win.cc

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
« views/widget/widget.h ('K') | « views/widget/widget_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "views/widget/widget_win.h" 5 #include "views/widget/widget_win.h"
6 6
7 #include "app/l10n_util_win.h" 7 #include "app/l10n_util_win.h"
8 #include "app/system_monitor.h" 8 #include "app/system_monitor.h"
9 #include "app/win_util.h" 9 #include "app/win_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 widget->focus_manager_->RestoreFocusedView(); 1246 widget->focus_manager_->RestoreFocusedView();
1247 } 1247 }
1248 } 1248 }
1249 1249
1250 //////////////////////////////////////////////////////////////////////////////// 1250 ////////////////////////////////////////////////////////////////////////////////
1251 // Widget, public: 1251 // Widget, public:
1252 1252
1253 // static 1253 // static
1254 Widget* Widget::CreatePopupWidget(TransparencyParam transparent, 1254 Widget* Widget::CreatePopupWidget(TransparencyParam transparent,
1255 EventsParam accept_events, 1255 EventsParam accept_events,
1256 DeleteParam delete_on_destroy) { 1256 DeleteParam delete_on_destroy,
1257 MirroringParam mirror_in_rtl) {
1257 WidgetWin* popup = new WidgetWin; 1258 WidgetWin* popup = new WidgetWin;
1258 DWORD ex_style = WS_EX_TOOLWINDOW | l10n_util::GetExtendedTooltipStyles(); 1259 DWORD ex_style = WS_EX_TOOLWINDOW;
1260 if (mirror_in_rtl == MirrorOriginInRTL)
1261 ex_style |= l10n_util::GetExtendedTooltipStyles();
1259 if (transparent == Transparent) 1262 if (transparent == Transparent)
1260 ex_style |= WS_EX_LAYERED; 1263 ex_style |= WS_EX_LAYERED;
1261 if (accept_events != AcceptEvents) 1264 if (accept_events != AcceptEvents)
1262 ex_style |= WS_EX_TRANSPARENT; 1265 ex_style |= WS_EX_TRANSPARENT;
1263 popup->set_window_style(WS_POPUP); 1266 popup->set_window_style(WS_POPUP);
1264 popup->set_window_ex_style(ex_style); 1267 popup->set_window_ex_style(ex_style);
1265 popup->set_delete_on_destroy(delete_on_destroy == DeleteOnDestroy); 1268 popup->set_delete_on_destroy(delete_on_destroy == DeleteOnDestroy);
1266 return popup; 1269 return popup;
1267 } 1270 }
1268 1271
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { 1340 Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) {
1338 return Widget::GetWidgetFromNativeView(native_window); 1341 return Widget::GetWidgetFromNativeView(native_window);
1339 } 1342 }
1340 1343
1341 // static 1344 // static
1342 void Widget::NotifyLocaleChanged() { 1345 void Widget::NotifyLocaleChanged() {
1343 NOTIMPLEMENTED(); 1346 NOTIMPLEMENTED();
1344 } 1347 }
1345 1348
1346 } // namespace views 1349 } // namespace views
OLDNEW
« views/widget/widget.h ('K') | « views/widget/widget_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698