summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-12 20:55:53 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-12 20:55:53 +0000
commitbde885b4e8cf11db7ba2af6c70a6580830a52e7a (patch)
tree7cb519bf772ed395b612ddabbe27d989ec44b958 /chrome/browser
parent9561605bc712063ba4ccb315c0a5cf5b0e3b221e (diff)
downloadchromium_src-bde885b4e8cf11db7ba2af6c70a6580830a52e7a.zip
chromium_src-bde885b4e8cf11db7ba2af6c70a6580830a52e7a.tar.gz
chromium_src-bde885b4e8cf11db7ba2af6c70a6580830a52e7a.tar.bz2
Move a bunch of windows stuff from ui/base/win to ui/gfx/win
R=sky@chromium.org BUG=103304 Review URL: https://codereview.chromium.org/23769011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/about_flags.cc4
-rw-r--r--chrome/browser/chrome_browser_main.cc2
-rw-r--r--chrome/browser/chromeos/login/chrome_restart_request.cc4
-rw-r--r--chrome/browser/extensions/api/system_display/display_info_provider_win.cc2
-rw-r--r--chrome/browser/hang_monitor/hung_plugin_action.cc4
-rw-r--r--chrome/browser/metrics/metrics_log.cc2
-rw-r--r--chrome/browser/process_singleton_win.cc2
-rw-r--r--chrome/browser/ui/views/app_menu_button_win.cc4
-rw-r--r--chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc2
-rw-r--r--chrome/browser/ui/views/frame/browser_frame_win.cc2
-rw-r--r--chrome/browser/ui/views/frame/glass_browser_frame_view.cc2
-rw-r--r--chrome/browser/ui/views/frame/minimize_button_metrics_win.cc2
-rw-r--r--chrome/browser/ui/views/infobars/infobar_view.cc4
-rw-r--r--chrome/browser/ui/views/omnibox/omnibox_view_win.cc4
-rw-r--r--chrome/browser/ui/views/simple_message_box_win.cc4
-rw-r--r--chrome/browser/ui/views/status_icons/status_tray_win.cc6
-rw-r--r--chrome/browser/ui/views/tabs/dragged_tab_view.cc2
-rw-r--r--chrome/browser/ui/views/tabs/tab_strip.cc4
18 files changed, 28 insertions, 28 deletions
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 207744e..65a2a7e 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1567,8 +1567,8 @@ const Experiment kExperiments[] = {
IDS_FLAGS_HIDPI_NAME,
IDS_FLAGS_HIDPI_DESCRIPTION,
kOsWin,
- ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(gfx::switches::kHighDPISupport, "1",
- gfx::switches::kHighDPISupport, "0")
+ ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(switches::kHighDPISupport, "1",
+ switches::kHighDPISupport, "0")
},
#if defined(OS_CHROMEOS)
{
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index fbbff83..4227996 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -175,7 +175,7 @@
#include "net/base/net_util.h"
#include "printing/printed_document.h"
#include "ui/base/l10n/l10n_util_win.h"
-#include "ui/gfx/dpi_win.h"
+#include "ui/gfx/win/dpi.h"
#endif // defined(OS_WIN)
#if defined(OS_MACOSX)
diff --git a/chrome/browser/chromeos/login/chrome_restart_request.cc b/chrome/browser/chromeos/login/chrome_restart_request.cc
index a06f5b9..9b2edd5 100644
--- a/chrome/browser/chromeos/login/chrome_restart_request.cc
+++ b/chrome/browser/chromeos/login/chrome_restart_request.cc
@@ -189,8 +189,8 @@ std::string DeriveCommandLine(const GURL& start_url,
chromeos::switches::kHasChromeOSKeyboard,
chromeos::switches::kLoginProfile,
chromeos::switches::kNaturalScrollDefault,
- gfx::switches::kEnableBrowserTextSubpixelPositioning,
- gfx::switches::kEnableWebkitTextSubpixelPositioning,
+ ::switches::kEnableBrowserTextSubpixelPositioning,
+ ::switches::kEnableWebkitTextSubpixelPositioning,
views::corewm::switches::kNoDropShadows,
views::corewm::switches::kWindowAnimationsDisabled,
};
diff --git a/chrome/browser/extensions/api/system_display/display_info_provider_win.cc b/chrome/browser/extensions/api/system_display/display_info_provider_win.cc
index 57a4c3a..dca172e 100644
--- a/chrome/browser/extensions/api/system_display/display_info_provider_win.cc
+++ b/chrome/browser/extensions/api/system_display/display_info_provider_win.cc
@@ -8,8 +8,8 @@
#include "base/strings/utf_string_conversions.h"
#include "ui/gfx/display.h"
-#include "ui/gfx/dpi_win.h"
#include "ui/gfx/size.h"
+#include "ui/gfx/win/dpi.h"
namespace extensions {
diff --git a/chrome/browser/hang_monitor/hung_plugin_action.cc b/chrome/browser/hang_monitor/hung_plugin_action.cc
index cdb9e59..bc93207 100644
--- a/chrome/browser/hang_monitor/hung_plugin_action.cc
+++ b/chrome/browser/hang_monitor/hung_plugin_action.cc
@@ -14,7 +14,7 @@
#include "content/public/common/webplugininfo.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/win/hwnd_util.h"
+#include "ui/gfx/win/hwnd_util.h"
namespace {
@@ -186,7 +186,7 @@ bool HungPluginAction::GetPluginNameAndVersion(HWND plugin_window,
// static
BOOL CALLBACK HungPluginAction::DismissMessageBox(HWND window, LPARAM ignore) {
- string16 class_name = ui::GetClassName(window);
+ string16 class_name = gfx::GetClassName(window);
// #32770 is the dialog window class which is the window class of
// the message box being displayed.
if (class_name == L"#32770") {
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index b55fab7..38df09f 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -58,7 +58,7 @@
#if defined(OS_WIN)
#include "base/win/metro.h"
-#include "ui/gfx/dpi_win.h"
+#include "ui/gfx/win/dpi.h"
// http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx
extern "C" IMAGE_DOS_HEADER __ImageBase;
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index e82bf79..66a8180 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -38,7 +38,7 @@
#include "grit/generated_resources.h"
#include "net/base/escape.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/win/hwnd_util.h"
+#include "ui/gfx/win/hwnd_util.h"
namespace {
diff --git a/chrome/browser/ui/views/app_menu_button_win.cc b/chrome/browser/ui/views/app_menu_button_win.cc
index 4e0a3a0..3e63d81 100644
--- a/chrome/browser/ui/views/app_menu_button_win.cc
+++ b/chrome/browser/ui/views/app_menu_button_win.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/ui/views/app_menu_button_win.h"
#include "ui/base/events/event.h"
-#include "ui/base/win/hwnd_util.h"
+#include "ui/gfx/win/hwnd_util.h"
#include "ui/views/widget/widget.h"
AppMenuButtonWin::AppMenuButtonWin(views::MenuButtonListener* listener)
@@ -15,7 +15,7 @@ AppMenuButtonWin::AppMenuButtonWin(views::MenuButtonListener* listener)
bool AppMenuButtonWin::OnKeyPressed(const ui::KeyEvent& event) {
if (event.key_code() == ui::VKEY_SPACE) {
// Explicitly show the system menu at a good location on [Alt]+[Space].
- ui::ShowSystemMenu(GetWidget()->GetNativeView());
+ gfx::ShowSystemMenu(GetWidget()->GetNativeView());
return false;
}
return views::MenuButton::OnKeyPressed(event);
diff --git a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc b/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc
index 6310a02..916fe65 100644
--- a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc
+++ b/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc
@@ -17,7 +17,7 @@
#include "chrome/browser/ui/views/theme_image_mapper.h"
#include "grit/theme_resources.h"
#include "ui/base/theme_provider.h"
-#include "ui/gfx/dpi_win.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/controls/menu/native_menu_win.h"
#pragma comment(lib, "dwmapi.lib")
diff --git a/chrome/browser/ui/views/frame/browser_frame_win.cc b/chrome/browser/ui/views/frame/browser_frame_win.cc
index 872ae88..c9d9ad8 100644
--- a/chrome/browser/ui/views/frame/browser_frame_win.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_win.cc
@@ -36,8 +36,8 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/theme_provider.h"
#include "ui/base/window_open_disposition.h"
-#include "ui/gfx/dpi_win.h"
#include "ui/gfx/font.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/controls/menu/native_menu_win.h"
#include "ui/views/views_delegate.h"
#include "ui/views/widget/native_widget_win.h"
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index a6c83e7..bc69baa 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -26,9 +26,9 @@
#include "ui/base/resource/resource_bundle_win.h"
#include "ui/base/theme_provider.h"
#include "ui/gfx/canvas.h"
-#include "ui/gfx/dpi_win.h"
#include "ui/gfx/icon_util.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/layout_constants.h"
#include "ui/views/win/hwnd_util.h"
diff --git a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
index 784c483..858b7a9 100644
--- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
+++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/i18n/rtl.h"
-#include "ui/gfx/dpi_win.h"
+#include "ui/gfx/win/dpi.h"
namespace {
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index 0936c95..a791d1c 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -38,8 +38,8 @@
#if defined(OS_WIN)
#include "base/win/win_util.h"
#include "base/win/windows_version.h"
-#include "ui/base/win/hwnd_util.h"
#include "ui/gfx/icon_util.h"
+#include "ui/gfx/win/hwnd_util.h"
#endif
// static
@@ -340,7 +340,7 @@ void InfoBarView::PlatformSpecificHide(bool animate) {
// Do not restore focus (and active state with it) if some other top-level
// window became active.
views::Widget* widget = GetWidget();
- if (!widget || ui::DoesWindowBelongToActiveWindow(widget->GetNativeView()))
+ if (!widget || gfx::DoesWindowBelongToActiveWindow(widget->GetNativeView()))
FocusLastFocusedExternalView();
#endif
}
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index fde88da..651bf4c 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -62,11 +62,11 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_win.h"
#include "ui/base/touch/touch_enabled.h"
-#include "ui/base/win/hwnd_util.h"
#include "ui/base/win/mouse_wheel_util.h"
#include "ui/base/win/touch_input.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/win/hwnd_util.h"
#include "ui/views/button_drag_utils.h"
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/menu_runner.h"
@@ -2037,7 +2037,7 @@ void OmniboxViewWin::OnSysChar(TCHAR ch,
// something useful, so discard those. Note that [Ctrl]+[Alt]+<xxx> generates
// WM_CHAR instead of WM_SYSCHAR, so it is not handled here.
if (ch == VK_SPACE) {
- ui::ShowSystemMenu(
+ gfx::ShowSystemMenu(
native_view_host_->GetWidget()->GetTopLevelWidget()->GetNativeWindow());
}
}
diff --git a/chrome/browser/ui/views/simple_message_box_win.cc b/chrome/browser/ui/views/simple_message_box_win.cc
index a0eef7d..0b31734 100644
--- a/chrome/browser/ui/views/simple_message_box_win.cc
+++ b/chrome/browser/ui/views/simple_message_box_win.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/simple_message_box.h"
#include "components/startup_metric_utils/startup_metric_utils.h"
-#include "ui/base/win/hwnd_util.h"
#include "ui/base/win/message_box_win.h"
+#include "ui/gfx/win/hwnd_util.h"
namespace chrome {
@@ -37,7 +37,7 @@ MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
startup_metric_utils::SetNonBrowserUIDisplayed();
if (!parent)
- parent = ui::GetWindowToParentTo(true);
+ parent = gfx::GetWindowToParentTo(true);
return NativeShowMessageBox(parent, title, message, type);
}
diff --git a/chrome/browser/ui/views/status_icons/status_tray_win.cc b/chrome/browser/ui/views/status_icons/status_tray_win.cc
index a1f5c66..dbc7d5a 100644
--- a/chrome/browser/ui/views/status_icons/status_tray_win.cc
+++ b/chrome/browser/ui/views/status_icons/status_tray_win.cc
@@ -9,8 +9,8 @@
#include "base/win/wrapped_window_proc.h"
#include "chrome/browser/ui/views/status_icons/status_icon_win.h"
#include "chrome/common/chrome_constants.h"
-#include "ui/base/win/hwnd_util.h"
#include "ui/gfx/screen.h"
+#include "ui/gfx/win/hwnd_util.h"
#include "win8/util/win8_util.h"
static const UINT kStatusIconMessage = WM_APP + 1;
@@ -50,8 +50,8 @@ StatusTrayWin::StatusTrayWin()
// "TaskbarCreated".
window_ = CreateWindow(MAKEINTATOM(atom_),
0, WS_POPUP, 0, 0, 0, 0, 0, 0, instance_, 0);
- ui::CheckWindowCreated(window_);
- ui::SetWindowUserData(window_, this);
+ gfx::CheckWindowCreated(window_);
+ gfx::SetWindowUserData(window_, this);
}
LRESULT CALLBACK StatusTrayWin::WndProcStatic(HWND hwnd,
diff --git a/chrome/browser/ui/views/tabs/dragged_tab_view.cc b/chrome/browser/ui/views/tabs/dragged_tab_view.cc
index e203fcb..bb3b8a6 100644
--- a/chrome/browser/ui/views/tabs/dragged_tab_view.cc
+++ b/chrome/browser/ui/views/tabs/dragged_tab_view.cc
@@ -13,7 +13,7 @@
#if defined(USE_AURA)
#include "ui/views/widget/native_widget_aura.h"
#elif defined(OS_WIN)
-#include "ui/gfx/dpi_win.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/widget/native_widget_win.h"
#endif
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 321fe2c..21638bd 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -52,7 +52,7 @@
#include "ui/views/window/non_client_view.h"
#if defined(OS_WIN)
-#include "ui/base/win/hwnd_util.h"
+#include "ui/gfx/win/hwnd_util.h"
#include "ui/views/widget/monitor_win.h"
#include "win8/util/win8_util.h"
#endif
@@ -380,7 +380,7 @@ void NewTabButton::OnMouseReleased(const ui::MouseEvent& event) {
views::View::ConvertPointToScreen(this, &point);
bool destroyed = false;
destroyed_ = &destroyed;
- ui::ShowSystemMenuAtPoint(GetWidget()->GetNativeView(), point);
+ gfx::ShowSystemMenuAtPoint(GetWidget()->GetNativeView(), point);
if (destroyed)
return;