diff options
Diffstat (limited to 'views/controls')
-rw-r--r-- | views/controls/menu/menu_win.cc | 4 | ||||
-rw-r--r-- | views/controls/menu/native_menu_win.cc | 6 | ||||
-rw-r--r-- | views/controls/native_control.cc | 6 | ||||
-rw-r--r-- | views/controls/native_control_win.cc | 9 | ||||
-rw-r--r-- | views/controls/scrollbar/native_scroll_bar_win.cc | 4 | ||||
-rw-r--r-- | views/controls/table/native_table_win.cc | 6 | ||||
-rw-r--r-- | views/controls/table/table_view.cc | 6 | ||||
-rw-r--r-- | views/controls/tree/tree_view.cc | 4 |
8 files changed, 22 insertions, 23 deletions
diff --git a/views/controls/menu/menu_win.cc b/views/controls/menu/menu_win.cc index 0c75743..294ea7e 100644 --- a/views/controls/menu/menu_win.cc +++ b/views/controls/menu/menu_win.cc @@ -9,13 +9,13 @@ #include "app/keyboard_codes.h" #include "app/l10n_util.h" #include "app/l10n_util_win.h" +#include "app/win/window_impl.h" #include "base/logging.h" #include "base/stl_util-inl.h" #include "base/string_util.h" #include "gfx/canvas_skia.h" #include "gfx/font.h" #include "gfx/rect.h" -#include "gfx/window_impl.h" #include "views/accelerator.h" namespace views { @@ -62,7 +62,7 @@ static int ChromeGetMenuItemID(HMENU hMenu, int pos) { // to intercept right clicks on the HMENU and notify the delegate as well as // for drawing icons. // -class MenuHostWindow : public gfx::WindowImpl { +class MenuHostWindow : public app::win::WindowImpl { public: MenuHostWindow(MenuWin* menu, HWND parent_window) : menu_(menu) { int extended_style = 0; diff --git a/views/controls/menu/native_menu_win.cc b/views/controls/menu/native_menu_win.cc index 3c31639..cf36c8e 100644 --- a/views/controls/menu/native_menu_win.cc +++ b/views/controls/menu/native_menu_win.cc @@ -7,9 +7,9 @@ #include "app/keyboard_codes.h" #include "app/l10n_util.h" #include "app/l10n_util_win.h" +#include "app/win/hwnd_util.h" #include "base/logging.h" #include "base/stl_util-inl.h" -#include "base/win_util.h" #include "gfx/canvas_skia.h" #include "gfx/font.h" #include "third_party/skia/include/core/SkBitmap.h" @@ -56,7 +56,7 @@ class NativeMenuWin::MenuHostWindow { RegisterClass(); hwnd_ = CreateWindowEx(l10n_util::GetExtendedStyles(), kWindowClassName, L"", 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL); - win_util::SetWindowUserData(hwnd_, this); + app::win::SetWindowUserData(hwnd_, this); } ~MenuHostWindow() { @@ -275,7 +275,7 @@ class NativeMenuWin::MenuHostWindow { WPARAM w_param, LPARAM l_param) { MenuHostWindow* host = - reinterpret_cast<MenuHostWindow*>(win_util::GetWindowUserData(window)); + reinterpret_cast<MenuHostWindow*>(app::win::GetWindowUserData(window)); // host is null during initial construction. LRESULT l_result = 0; if (!host || !host->ProcessWindowMessage(window, message, w_param, l_param, diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc index 13881bb..9434a50 100644 --- a/views/controls/native_control.cc +++ b/views/controls/native_control.cc @@ -13,10 +13,10 @@ #include "app/keyboard_code_conversion_win.h" #include "app/keyboard_codes.h" #include "app/l10n_util_win.h" +#include "app/win/hwnd_util.h" #include "app/view_prop.h" #include "base/logging.h" #include "base/scoped_ptr.h" -#include "base/win_util.h" #include "gfx/native_theme_win.h" #include "views/background.h" #include "views/border.h" @@ -89,7 +89,7 @@ class NativeControlContainer : public CWindowImpl<NativeControlContainer, control_ = parent_->CreateNativeControl(m_hWnd); // We subclass the control hwnd so we get the WM_KEYDOWN messages. - original_handler_ = win_util::SetWindowProc( + original_handler_ = app::win::SetWindowProc( control_, &NativeControl::NativeControlWndProc); prop_.reset(new ViewProp(control_, kNativeControlKey , parent_)); @@ -382,7 +382,7 @@ LRESULT CALLBACK NativeControl::NativeControlWndProc(HWND window, NOTREACHED(); } } else if (message == WM_DESTROY) { - win_util::SetWindowProc(window, + app::win::SetWindowProc(window, reinterpret_cast<WNDPROC>(original_handler)); native_control->container_->prop_.reset(); } diff --git a/views/controls/native_control_win.cc b/views/controls/native_control_win.cc index a223993..0c24fef 100644 --- a/views/controls/native_control_win.cc +++ b/views/controls/native_control_win.cc @@ -7,9 +7,9 @@ #include <windowsx.h> #include "app/l10n_util_win.h" +#include "app/win/hwnd_util.h" #include "app/view_prop.h" #include "base/logging.h" -#include "base/win_util.h" #include "views/focus/focus_manager.h" using app::ViewProp; @@ -136,9 +136,8 @@ void NativeControlWin::NativeControlCreated(HWND native_control) { props_.push_back(ChildWindowMessageProcessor::Register(native_control, this)); // Subclass so we get WM_KEYDOWN and WM_SETFOCUS messages. - original_wndproc_ = - win_util::SetWindowProc(native_control, - &NativeControlWin::NativeControlWndProc); + original_wndproc_ = app::win::SetWindowProc( + native_control, &NativeControlWin::NativeControlWndProc); Attach(native_control); // native_view() is now valid. @@ -214,7 +213,7 @@ LRESULT NativeControlWin::NativeControlWndProc(HWND window, } } else if (message == WM_DESTROY) { native_control->props_.reset(); - win_util::SetWindowProc(window, native_control->original_wndproc_); + app::win::SetWindowProc(window, native_control->original_wndproc_); } return CallWindowProc(native_control->original_wndproc_, window, message, diff --git a/views/controls/scrollbar/native_scroll_bar_win.cc b/views/controls/scrollbar/native_scroll_bar_win.cc index 55592a8a..0aea447c 100644 --- a/views/controls/scrollbar/native_scroll_bar_win.cc +++ b/views/controls/scrollbar/native_scroll_bar_win.cc @@ -8,8 +8,8 @@ #include <string> #include "app/keyboard_codes.h" +#include "app/win/window_impl.h" #include "base/message_loop.h" -#include "gfx/window_impl.h" #include "views/controls/scrollbar/native_scroll_bar.h" #include "views/controls/scrollbar/scroll_bar.h" #include "views/widget/widget.h" @@ -24,7 +24,7 @@ namespace views { // use instances of this class to wrap native scrollbars. // ///////////////////////////////////////////////////////////////////////////// -class ScrollBarContainer : public gfx::WindowImpl { +class ScrollBarContainer : public app::win::WindowImpl { public: explicit ScrollBarContainer(ScrollBar* parent) : parent_(parent), diff --git a/views/controls/table/native_table_win.cc b/views/controls/table/native_table_win.cc index 82561e1..35769c6 100644 --- a/views/controls/table/native_table_win.cc +++ b/views/controls/table/native_table_win.cc @@ -10,8 +10,8 @@ #include "app/l10n_util.h" #include "app/l10n_util_win.h" #include "app/table_model.h" +#include "app/win/hwnd_util.h" #include "base/logging.h" -#include "base/win_util.h" #include "gfx/canvas_skia.h" #include "gfx/favicon_size.h" #include "gfx/icon_util.h" @@ -408,12 +408,12 @@ void NativeTableWin::CreateNativeControl() { DCHECK(header); SetWindowLongPtr(header, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(this)); header_original_handler_ = - win_util::SetWindowProc(header, &NativeTableWin::TableHeaderWndProc); + app::win::SetWindowProc(header, &NativeTableWin::TableHeaderWndProc); } SetWindowLongPtr(hwnd, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(this)); original_handler_ = - win_util::SetWindowProc(hwnd, &NativeTableWin::TableWndProc); + app::win::SetWindowProc(hwnd, &NativeTableWin::TableWndProc); // Bug 964884: detach the IME attached to this window. // We should attach IMEs only when we need to input CJK strings. diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc index 84c0538..d35b074 100644 --- a/views/controls/table/table_view.cc +++ b/views/controls/table/table_view.cc @@ -13,9 +13,9 @@ #include "app/l10n_util_win.h" #include "app/resource_bundle.h" #include "app/table_model.h" +#include "app/win/hwnd_util.h" #include "base/i18n/rtl.h" #include "base/string_util.h" -#include "base/win_util.h" #include "gfx/canvas_skia.h" #include "gfx/favicon_size.h" #include "gfx/font.h" @@ -835,14 +835,14 @@ HWND TableView::CreateNativeControl(HWND parent_container) { DCHECK(header); SetWindowLongPtr(header, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(&table_view_wrapper_)); - header_original_handler_ = win_util::SetWindowProc(header, + header_original_handler_ = app::win::SetWindowProc(header, &TableView::TableHeaderWndProc); } SetWindowLongPtr(list_view_, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(&table_view_wrapper_)); original_handler_ = - win_util::SetWindowProc(list_view_, &TableView::TableWndProc); + app::win::SetWindowProc(list_view_, &TableView::TableWndProc); // Bug 964884: detach the IME attached to this window. // We should attach IMEs only when we need to input CJK strings. diff --git a/views/controls/tree/tree_view.cc b/views/controls/tree/tree_view.cc index bfdd454..5fe2ef9 100644 --- a/views/controls/tree/tree_view.cc +++ b/views/controls/tree/tree_view.cc @@ -10,6 +10,7 @@ #include "app/keyboard_codes.h" #include "app/l10n_util_win.h" #include "app/resource_bundle.h" +#include "app/win/hwnd_util.h" #include "base/i18n/rtl.h" #include "base/logging.h" #include "base/stl_util-inl.h" @@ -336,8 +337,7 @@ HWND TreeView::CreateNativeControl(HWND parent_container) { parent_container, NULL, NULL, NULL); SetWindowLongPtr(tree_view_, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(&wrapper_)); - original_handler_ = win_util::SetWindowProc(tree_view_, - &TreeWndProc); + original_handler_ = app::win::SetWindowProc(tree_view_, &TreeWndProc); l10n_util::AdjustUIFontForWindow(tree_view_); if (model_) { |