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

Side by Side Diff: chrome/common/l10n_util_win.cc

Issue 28127: Remove unnecessary include. Also add copyright to the new files. (Closed)
Patch Set: Created 11 years, 10 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
« no previous file with comments | « chrome/common/l10n_util_win.h ('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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
1 #include "chrome/common/l10n_util.h" 5 #include "chrome/common/l10n_util.h"
2 #include "chrome/common/l10n_util_win.h" 6 #include "chrome/common/l10n_util_win.h"
3 7
4 namespace l10n_util { 8 namespace l10n_util {
5 9
6 int GetExtendedStyles() { 10 int GetExtendedStyles() {
7 return GetTextDirection() == LEFT_TO_RIGHT ? 0 : 11 return GetTextDirection() == LEFT_TO_RIGHT ? 0 :
8 WS_EX_LAYOUTRTL | WS_EX_RTLREADING; 12 WS_EX_LAYOUTRTL | WS_EX_RTLREADING;
9 } 13 }
10 14
(...skipping 11 matching lines...) Expand all
22 26
23 // Right-to-left layout changes are not applied to the window immediately 27 // Right-to-left layout changes are not applied to the window immediately
24 // so we should make sure a WM_PAINT is sent to the window by invalidating 28 // so we should make sure a WM_PAINT is sent to the window by invalidating
25 // the entire window rect. 29 // the entire window rect.
26 ::InvalidateRect(hwnd, NULL, true); 30 ::InvalidateRect(hwnd, NULL, true);
27 } 31 }
28 } 32 }
29 33
30 } // namespace l10n_util 34 } // namespace l10n_util
31 35
OLDNEW
« no previous file with comments | « chrome/common/l10n_util_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698