| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "ui/views/win/hwnd_message_handler.h" | 5 #include "ui/views/win/hwnd_message_handler.h" | 
| 6 | 6 | 
| 7 #include <dwmapi.h> | 7 #include <dwmapi.h> | 
| 8 #include <oleacc.h> | 8 #include <oleacc.h> | 
| 9 #include <shellapi.h> | 9 #include <shellapi.h> | 
| 10 #include <tchar.h> | 10 #include <tchar.h> | 
| (...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1337 | 1337 | 
| 1338   if (!delegate_->HasFrame()) { | 1338   if (!delegate_->HasFrame()) { | 
| 1339     SetWindowLong(hwnd(), GWL_STYLE, | 1339     SetWindowLong(hwnd(), GWL_STYLE, | 
| 1340                   GetWindowLong(hwnd(), GWL_STYLE) & ~WS_CAPTION); | 1340                   GetWindowLong(hwnd(), GWL_STYLE) & ~WS_CAPTION); | 
| 1341     SendFrameChanged(); | 1341     SendFrameChanged(); | 
| 1342   } | 1342   } | 
| 1343 | 1343 | 
| 1344   // Get access to a modifiable copy of the system menu. | 1344   // Get access to a modifiable copy of the system menu. | 
| 1345   GetSystemMenu(hwnd(), false); | 1345   GetSystemMenu(hwnd(), false); | 
| 1346 | 1346 | 
| 1347   if (ui::AreTouchEventsEnabled()) | 1347   RegisterTouchWindow(hwnd(), TWF_WANTPALM); | 
| 1348     RegisterTouchWindow(hwnd(), TWF_WANTPALM); |  | 
| 1349 | 1348 | 
| 1350   // We need to allow the delegate to size its contents since the window may not | 1349   // We need to allow the delegate to size its contents since the window may not | 
| 1351   // receive a size notification when its initial bounds are specified at window | 1350   // receive a size notification when its initial bounds are specified at window | 
| 1352   // creation time. | 1351   // creation time. | 
| 1353   ClientAreaSizeChanged(); | 1352   ClientAreaSizeChanged(); | 
| 1354 | 1353 | 
| 1355   delegate_->HandleCreate(); | 1354   delegate_->HandleCreate(); | 
| 1356 | 1355 | 
| 1357   windows_session_change_observer_.reset(new WindowsSessionChangeObserver( | 1356   windows_session_change_observer_.reset(new WindowsSessionChangeObserver( | 
| 1358       base::Bind(&HWNDMessageHandler::OnSessionChange, | 1357       base::Bind(&HWNDMessageHandler::OnSessionChange, | 
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2736   MONITORINFO monitor_info = {sizeof(monitor_info)}; | 2735   MONITORINFO monitor_info = {sizeof(monitor_info)}; | 
| 2737   GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), | 2736   GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), | 
| 2738                  &monitor_info); | 2737                  &monitor_info); | 
| 2739   gfx::Rect shrunk_rect(monitor_info.rcMonitor); | 2738   gfx::Rect shrunk_rect(monitor_info.rcMonitor); | 
| 2740   shrunk_rect.set_height(shrunk_rect.height() - 1); | 2739   shrunk_rect.set_height(shrunk_rect.height() - 1); | 
| 2741   background_fullscreen_hack_ = true; | 2740   background_fullscreen_hack_ = true; | 
| 2742   SetBoundsInternal(shrunk_rect, false); | 2741   SetBoundsInternal(shrunk_rect, false); | 
| 2743 } | 2742 } | 
| 2744 | 2743 | 
| 2745 }  // namespace views | 2744 }  // namespace views | 
| OLD | NEW | 
|---|