| 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 | 10 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 DISALLOW_COPY_AND_ASSIGN(ScopedRedrawLock); | 300 DISALLOW_COPY_AND_ASSIGN(ScopedRedrawLock); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 //////////////////////////////////////////////////////////////////////////////// | 303 //////////////////////////////////////////////////////////////////////////////// |
| 304 // HWNDMessageHandler, public: | 304 // HWNDMessageHandler, public: |
| 305 | 305 |
| 306 long HWNDMessageHandler::last_touch_message_time_ = 0; | 306 long HWNDMessageHandler::last_touch_message_time_ = 0; |
| 307 | 307 |
| 308 HWNDMessageHandler::HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate) | 308 HWNDMessageHandler::HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate) |
| 309 : delegate_(delegate), | 309 : msg_handled_(FALSE), |
| 310 delegate_(delegate), |
| 310 fullscreen_handler_(new FullscreenHandler), | 311 fullscreen_handler_(new FullscreenHandler), |
| 311 waiting_for_close_now_(false), | 312 waiting_for_close_now_(false), |
| 312 remove_standard_frame_(false), | 313 remove_standard_frame_(false), |
| 313 use_system_default_icon_(false), | 314 use_system_default_icon_(false), |
| 314 restored_enabled_(false), | 315 restored_enabled_(false), |
| 315 current_cursor_(NULL), | 316 current_cursor_(NULL), |
| 316 previous_cursor_(NULL), | 317 previous_cursor_(NULL), |
| 317 active_mouse_tracking_flags_(0), | 318 active_mouse_tracking_flags_(0), |
| 318 is_right_mouse_pressed_on_caption_(false), | 319 is_right_mouse_pressed_on_caption_(false), |
| 319 lock_updates_count_(0), | 320 lock_updates_count_(0), |
| 320 ignore_window_pos_changes_(false), | 321 ignore_window_pos_changes_(false), |
| 321 last_monitor_(NULL), | 322 last_monitor_(NULL), |
| 322 is_first_nccalc_(true), | 323 is_first_nccalc_(true), |
| 323 menu_depth_(0), | 324 menu_depth_(0), |
| 324 id_generator_(0), | 325 id_generator_(0), |
| 325 needs_scroll_styles_(false), | 326 needs_scroll_styles_(false), |
| 326 in_size_loop_(false), | 327 in_size_loop_(false), |
| 327 touch_down_contexts_(0), | 328 touch_down_contexts_(0), |
| 328 last_mouse_hwheel_time_(0), | 329 last_mouse_hwheel_time_(0), |
| 329 msg_handled_(FALSE), | |
| 330 dwm_transition_desired_(false), | 330 dwm_transition_desired_(false), |
| 331 autohide_factory_(this), | 331 autohide_factory_(this), |
| 332 weak_factory_(this) { | 332 weak_factory_(this) { |
| 333 } | 333 } |
| 334 | 334 |
| 335 HWNDMessageHandler::~HWNDMessageHandler() { | 335 HWNDMessageHandler::~HWNDMessageHandler() { |
| 336 delegate_ = NULL; | 336 delegate_ = NULL; |
| 337 // Prevent calls back into this class via WNDPROC now that we've been | 337 // Prevent calls back into this class via WNDPROC now that we've been |
| 338 // destroyed. | 338 // destroyed. |
| 339 ClearUserData(); | 339 ClearUserData(); |
| (...skipping 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); | 2745 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); |
| 2746 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); | 2746 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); |
| 2747 } | 2747 } |
| 2748 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want | 2748 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want |
| 2749 // to notify our children too, since we can have MDI child windows who need to | 2749 // to notify our children too, since we can have MDI child windows who need to |
| 2750 // update their appearance. | 2750 // update their appearance. |
| 2751 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); | 2751 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); |
| 2752 } | 2752 } |
| 2753 | 2753 |
| 2754 } // namespace views | 2754 } // namespace views |
| OLD | NEW |