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

Side by Side Diff: ui/base/win/hwnd_util.cc

Issue 16431009: Use a direct include of strings headers in ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « ui/base/win/hwnd_util.h ('k') | ui/base/win/ime_input.h » ('j') | 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) 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 #include "ui/base/win/hwnd_util.h" 5 #include "ui/base/win/hwnd_util.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/win/metro.h" 9 #include "base/win/metro.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 namespace { 16 namespace {
17 17
18 // Adjust the window to fit. 18 // Adjust the window to fit.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 HMODULE metro = base::win::GetMetroModule(); 204 HMODULE metro = base::win::GetMetroModule();
205 if (!metro) 205 if (!metro)
206 return get_real_hwnd ? ::GetDesktopWindow() : HWND_DESKTOP; 206 return get_real_hwnd ? ::GetDesktopWindow() : HWND_DESKTOP;
207 // In windows 8 metro-mode the root window is not the desktop. 207 // In windows 8 metro-mode the root window is not the desktop.
208 RootWindow root_window = 208 RootWindow root_window =
209 reinterpret_cast<RootWindow>(::GetProcAddress(metro, "GetRootWindow")); 209 reinterpret_cast<RootWindow>(::GetProcAddress(metro, "GetRootWindow"));
210 return root_window(); 210 return root_window();
211 } 211 }
212 212
213 } // namespace ui 213 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/hwnd_util.h ('k') | ui/base/win/ime_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698