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

Unified Diff: app/win/window_impl.cc

Issue 6019007: Remove win_util::FormatMessage and FormatLastWin32Error. These were only used... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/win/window_impl.h ('k') | base/file_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/win/window_impl.cc
===================================================================
--- app/win/window_impl.cc (revision 70263)
+++ app/win/window_impl.cc (working copy)
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "gfx/window_impl.h"
+#include "app/win/window_impl.h"
#include <list>
+#include "app/win/hwnd_util.h"
#include "base/singleton.h"
#include "base/string_number_conversions.h"
-#include "base/win_util.h"
-namespace gfx {
+namespace app {
+namespace win {
static const DWORD kWindowDefaultChildStyle =
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
@@ -149,7 +150,7 @@
DCHECK(hwnd_);
// The window procedure should have set the data for us.
- DCHECK(win_util::GetWindowUserData(hwnd_) == this);
+ DCHECK(app::win::GetWindowUserData(hwnd_) == this);
}
HICON WindowImpl::GetDefaultWindowIcon() const {
@@ -186,13 +187,13 @@
CREATESTRUCT* cs = reinterpret_cast<CREATESTRUCT*>(l_param);
WindowImpl* window = reinterpret_cast<WindowImpl*>(cs->lpCreateParams);
DCHECK(window);
- win_util::SetWindowUserData(hwnd, window);
+ app::win::SetWindowUserData(hwnd, window);
window->hwnd_ = hwnd;
return TRUE;
}
WindowImpl* window = reinterpret_cast<WindowImpl*>(
- win_util::GetWindowUserData(hwnd));
+ app::win::GetWindowUserData(hwnd));
if (!window)
return 0;
@@ -227,4 +228,5 @@
return name;
}
-} // namespace gfx
+} // namespace win
+} // namespace app
« no previous file with comments | « app/win/window_impl.h ('k') | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698