summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/aura/remote_root_window_host_win.cc6
-rw-r--r--ui/aura/remote_root_window_host_win.h2
-rw-r--r--ui/metro_viewer/metro_viewer_messages.h6
-rw-r--r--win8/metro_driver/chrome_app_view_ash.cc36
-rw-r--r--win8/metro_driver/chrome_app_view_ash.h4
5 files changed, 0 insertions, 54 deletions
diff --git a/ui/aura/remote_root_window_host_win.cc b/ui/aura/remote_root_window_host_win.cc
index 3601ea2..d6b72df 100644
--- a/ui/aura/remote_root_window_host_win.cc
+++ b/ui/aura/remote_root_window_host_win.cc
@@ -161,8 +161,6 @@ bool RemoteRootWindowHostWin::OnMessageReceived(const IPC::Message& message) {
OnWindowActivated)
IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetCursorPosAck,
OnSetCursorPosAck)
- IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged,
- OnWindowSizeChanged)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -504,10 +502,6 @@ void RemoteRootWindowHostWin::OnSetCursorPosAck() {
ignore_mouse_moves_until_set_cursor_ack_ = false;
}
-void RemoteRootWindowHostWin::OnWindowSizeChanged(uint32 width, uint32 height) {
- SetBounds(gfx::Rect(0, 0, width, height));
-}
-
void RemoteRootWindowHostWin::DispatchKeyboardMessage(ui::EventType type,
uint32 vkey,
uint32 repeat_count,
diff --git a/ui/aura/remote_root_window_host_win.h b/ui/aura/remote_root_window_host_win.h
index bf30629..0577ee7 100644
--- a/ui/aura/remote_root_window_host_win.h
+++ b/ui/aura/remote_root_window_host_win.h
@@ -149,8 +149,6 @@ class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost {
void OnSelectFolderDone(bool success, const base::FilePath& folder);
void OnWindowActivated(bool active);
void OnSetCursorPosAck();
- void OnWindowSizeChanged(uint32 width, uint32 height);
-
// RootWindowHost overrides:
virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE;
virtual RootWindow* GetRootWindow() OVERRIDE;
diff --git a/ui/metro_viewer/metro_viewer_messages.h b/ui/metro_viewer/metro_viewer_messages.h
index 8d0d452..f301618 100644
--- a/ui/metro_viewer/metro_viewer_messages.h
+++ b/ui/metro_viewer/metro_viewer_messages.h
@@ -145,9 +145,3 @@ IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SetCursorPos,
// Ack sent by the viewer process indicating that the SetCursorPos operation
// was completed.
IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_SetCursorPosAck)
-
-// Sent from the metro viewer process to the browser process to indicate that
-// the viewer window size has changed.
-IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_WindowSizeChanged,
- uint32, /* width */
- uint32) /* height */
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc
index 1f81ed3..f3a3a88 100644
--- a/win8/metro_driver/chrome_app_view_ash.cc
+++ b/win8/metro_driver/chrome_app_view_ash.cc
@@ -54,10 +54,6 @@ typedef winfoundtn::ITypedEventHandler<
winui::Core::CoreWindow*,
winui::Core::WindowActivatedEventArgs*> WindowActivatedHandler;
-typedef winfoundtn::ITypedEventHandler<
- winui::Core::CoreWindow*,
- winui::Core::WindowSizeChangedEventArgs*> SizeChangedHandler;
-
// This function is exported by chrome.exe.
typedef int (__cdecl *BreakpadExceptionHandler)(EXCEPTION_POINTERS* info);
@@ -330,11 +326,6 @@ ChromeAppViewAsh::SetWindow(winui::Core::ICoreWindow* window) {
hr = interop->get_WindowHandle(&core_window_hwnd_);
CheckHR(hr);
- hr = window_->add_SizeChanged(mswr::Callback<SizeChangedHandler>(
- this, &ChromeAppViewAsh::OnSizeChanged).Get(),
- &sizechange_token_);
- CheckHR(hr);
-
// Register for pointer and keyboard notifications. We forward
// them to the browser process via IPC.
hr = window_->add_PointerMoved(mswr::Callback<PointerEventHandler>(
@@ -457,14 +448,6 @@ ChromeAppViewAsh::Run() {
gfx::NativeViewId(core_window_hwnd_)));
DVLOG(1) << "ICoreWindow sent " << core_window_hwnd_;
- // Send an initial size message so that the Ash root window host gets sized
- // correctly.
- RECT rect = {0};
- ::GetWindowRect(core_window_hwnd_, &rect);
- ui_channel_->Send(
- new MetroViewerHostMsg_WindowSizeChanged(rect.right - rect.left,
- rect.bottom - rect.top));
-
// And post the task that'll do the inner Metro message pumping to it.
msg_loop.PostTask(FROM_HERE, base::Bind(&RunMessageLoop, dispatcher.Get()));
msg_loop.Run();
@@ -847,25 +830,6 @@ HRESULT ChromeAppViewAsh::OnWindowActivated(
return S_OK;
}
-HRESULT ChromeAppViewAsh::OnSizeChanged(winui::Core::ICoreWindow* sender,
- winui::Core::IWindowSizeChangedEventArgs* args) {
- if (!window_) {
- return S_OK;
- }
-
- winfoundtn::Size size;
- HRESULT hr = args->get_Size(&size);
- if (FAILED(hr))
- return hr;
-
- uint32 cx = static_cast<uint32>(size.Width);
- uint32 cy = static_cast<uint32>(size.Height);
-
- DVLOG(1) << "Window size changed: width=" << cx << ", height=" << cy;
- ui_channel_->Send(new MetroViewerHostMsg_WindowSizeChanged(cx, cy));
- return S_OK;
-}
-
///////////////////////////////////////////////////////////////////////////////
diff --git a/win8/metro_driver/chrome_app_view_ash.h b/win8/metro_driver/chrome_app_view_ash.h
index 010f0d6..0989cda 100644
--- a/win8/metro_driver/chrome_app_view_ash.h
+++ b/win8/metro_driver/chrome_app_view_ash.h
@@ -111,9 +111,6 @@ class ChromeAppViewAsh
HRESULT OnWindowActivated(winui::Core::ICoreWindow* sender,
winui::Core::IWindowActivatedEventArgs* args);
- HRESULT OnSizeChanged(winui::Core::ICoreWindow* sender,
- winui::Core::IWindowSizeChangedEventArgs* args);
-
mswr::ComPtr<winui::Core::ICoreWindow> window_;
mswr::ComPtr<winapp::Core::ICoreApplicationView> view_;
EventRegistrationToken activated_token_;
@@ -128,7 +125,6 @@ class ChromeAppViewAsh
EventRegistrationToken accel_keydown_token_;
EventRegistrationToken accel_keyup_token_;
EventRegistrationToken window_activated_token_;
- EventRegistrationToken sizechange_token_;
// Keep state about which button is currently down, if any, as PointerMoved
// events do not contain that state, but Ash's MouseEvents need it.