diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-31 17:18:50 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-31 17:18:50 +0000 |
commit | a8e2058011129cbef38bf89834ee01715556b392 (patch) | |
tree | 00cb892894c52145a66d23048acf2a81f0eed61d /chrome/browser | |
parent | a1fa87c8042ed2a3f9edd74ad2f313c84b1e407a (diff) | |
download | chromium_src-a8e2058011129cbef38bf89834ee01715556b392.zip chromium_src-a8e2058011129cbef38bf89834ee01715556b392.tar.gz chromium_src-a8e2058011129cbef38bf89834ee01715556b392.tar.bz2 |
Move base/win_util to the base/win directory and use the base::win namespace.
Fix up includes, many files including base/win_util don't actually need it.
TEST=it compiles
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
11 files changed, 6 insertions, 18 deletions
diff --git a/chrome/browser/automation/ui_controls_win.cc b/chrome/browser/automation/ui_controls_win.cc index 25469ad..b03c97b 100644 --- a/chrome/browser/automation/ui_controls_win.cc +++ b/chrome/browser/automation/ui_controls_win.cc @@ -8,7 +8,6 @@ #include "app/keyboard_codes.h" #include "base/logging.h" #include "base/message_loop.h" -#include "base/win_util.h" #include "base/ref_counted.h" #include "base/task.h" #include "views/view.h" diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc index 92c24a3..0f84abe 100644 --- a/chrome/browser/download/download_util.cc +++ b/chrome/browser/download/download_util.cc @@ -74,7 +74,6 @@ #include "app/win_util.h" #include "app/win/drag_source.h" #include "base/win/scoped_comptr.h" -#include "base/win_util.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/views/frame/browser_view.h" #endif diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc index 976d27d..ac4cfba 100644 --- a/chrome/browser/external_tab_container_win.cc +++ b/chrome/browser/external_tab_container_win.cc @@ -12,7 +12,7 @@ #include "base/i18n/rtl.h" #include "base/logging.h" #include "base/utf_string_conversions.h" -#include "base/win_util.h" +#include "base/win/win_util.h" #include "chrome/app/chrome_command_ids.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/automation/automation_provider.h" @@ -527,7 +527,7 @@ gfx::NativeWindow ExternalTabContainer::GetFrameNativeWindow() { bool ExternalTabContainer::TakeFocus(bool reverse) { if (automation_) { automation_->Send(new AutomationMsg_TabbedOut(tab_handle_, - win_util::IsShiftPressed())); + base::win::IsShiftPressed())); } return true; @@ -844,7 +844,7 @@ bool ExternalTabContainer::ProcessUnhandledKeyStroke(HWND window, if (!automation_) { return false; } - if ((wparam == VK_TAB) && !win_util::IsCtrlPressed()) { + if ((wparam == VK_TAB) && !base::win::IsCtrlPressed()) { // Tabs are handled separately (except if this is Ctrl-Tab or // Ctrl-Shift-Tab) return false; diff --git a/chrome/browser/geolocation/win7_location_api_unittest_win.cc b/chrome/browser/geolocation/win7_location_api_unittest_win.cc index 16d867c..a22b99b 100644 --- a/chrome/browser/geolocation/win7_location_api_unittest_win.cc +++ b/chrome/browser/geolocation/win7_location_api_unittest_win.cc @@ -12,7 +12,6 @@ #include "base/message_loop.h" #include "base/scoped_ptr.h" #include "base/time.h" -#include "base/win_util.h" #include "chrome/common/geoposition.h" #include "chrome/browser/geolocation/win7_location_api_win.h" #include "testing/gmock/include/gmock/gmock.h" diff --git a/chrome/browser/geolocation/win7_location_api_win.h b/chrome/browser/geolocation/win7_location_api_win.h index 96fcd21..78bbed4 100644 --- a/chrome/browser/geolocation/win7_location_api_win.h +++ b/chrome/browser/geolocation/win7_location_api_win.h @@ -12,7 +12,6 @@ #include <Windows.h> #include "base/time.h" -#include "base/win_util.h" struct Geoposition; diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc index ddbd313..6255d53 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_win.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc @@ -17,7 +17,6 @@ #include "base/process_util.h" #include "base/scoped_comptr_win.h" #include "base/thread.h" -#include "base/win_util.h" #include "base/win/scoped_gdi_object.h" #include "chrome/browser/accessibility/browser_accessibility_win.h" #include "chrome/browser/accessibility/browser_accessibility_manager.h" diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc index ad1f653..aaf1d78 100644 --- a/chrome/browser/shell_integration_win.cc +++ b/chrome/browser/shell_integration_win.cc @@ -17,7 +17,6 @@ #include "base/string_util.h" #include "base/task.h" #include "base/utf_string_conversions.h" -#include "base/win_util.h" #include "base/win/registry.h" #include "base/win/windows_version.h" #include "chrome/browser/browser_thread.h" diff --git a/chrome/browser/ui/views/about_chrome_view.cc b/chrome/browser/ui/views/about_chrome_view.cc index 215c6f0..b6176df 100644 --- a/chrome/browser/ui/views/about_chrome_view.cc +++ b/chrome/browser/ui/views/about_chrome_view.cc @@ -44,7 +44,7 @@ #include "webkit/glue/webkit_glue.h" #if defined(OS_WIN) -#include "base/win_util.h" +#include "base/win/win_util.h" #include "chrome/browser/views/restart_message_box.h" #include "chrome/installer/util/install_util.h" #endif // defined(OS_WIN) @@ -533,7 +533,7 @@ void AboutChromeView::ViewHierarchyChanged(bool is_add, // for Vista is another option. int service_pack_major = 0, service_pack_minor = 0; base::win::GetServicePackLevel(&service_pack_major, &service_pack_minor); - if (win_util::UserAccountControlIsEnabled() || + if (base::win::UserAccountControlIsEnabled() || base::win::GetVersion() == base::win::VERSION_XP || (base::win::GetVersion() == base::win::VERSION_VISTA && service_pack_major >= 1) || diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc index 4532222..da6e668 100644 --- a/chrome/browser/ui/views/create_application_shortcut_view.cc +++ b/chrome/browser/ui/views/create_application_shortcut_view.cc @@ -32,11 +32,6 @@ #include "views/standard_layout.h" #include "views/window/window.h" - -#if defined(OS_WIN) -#include "base/win_util.h" -#endif // defined(OS_WIN) - namespace { const int kAppIconSize = 32; diff --git a/chrome/browser/ui/views/frame/browser_frame_win.cc b/chrome/browser/ui/views/frame/browser_frame_win.cc index 1fe8a6c..2bbe2c9 100644 --- a/chrome/browser/ui/views/frame/browser_frame_win.cc +++ b/chrome/browser/ui/views/frame/browser_frame_win.cc @@ -11,7 +11,6 @@ #include "app/win/hwnd_util.h" #include "app/win_util.h" -#include "base/win_util.h" #include "chrome/browser/accessibility/browser_accessibility_state.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/browser_list.h" diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc index 05d6c9f..4194afd 100644 --- a/chrome/browser/web_applications/web_app.cc +++ b/chrome/browser/web_applications/web_app.cc @@ -38,7 +38,7 @@ #endif // defined(OS_LINUX) #if defined(OS_WIN) -#include "base/win_util.h" +#include "base/win/win_util.h" #include "chrome/common/notification_details.h" #include "chrome/common/notification_source.h" #include "gfx/icon_util.h" |