| 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 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 528 |
| 529 // Copy of custom window region specified via SetRegion(), if any. | 529 // Copy of custom window region specified via SetRegion(), if any. |
| 530 base::win::ScopedRegion custom_window_region_; | 530 base::win::ScopedRegion custom_window_region_; |
| 531 | 531 |
| 532 // A factory used to lookup appbar autohide edges. | 532 // A factory used to lookup appbar autohide edges. |
| 533 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; | 533 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; |
| 534 | 534 |
| 535 // Generates touch-ids for touch-events. | 535 // Generates touch-ids for touch-events. |
| 536 ui::SequentialIDGenerator id_generator_; | 536 ui::SequentialIDGenerator id_generator_; |
| 537 | 537 |
| 538 // Indicates if the window has the WS_VSCROLL and WS_HSCROLL styles set. | 538 // Indicates if the window needs the WS_VSCROLL and WS_HSCROLL styles. |
| 539 bool scroll_styles_set_; | 539 bool needs_scroll_styles_; |
| 540 |
| 541 // Set to true if we are in the context of a sizing or moving operation. |
| 542 bool in_size_move_loop_; |
| 540 | 543 |
| 541 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 544 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 542 }; | 545 }; |
| 543 | 546 |
| 544 // This window property if set on the window does not activate the window for a | 547 // This window property if set on the window does not activate the window for a |
| 545 // touch based WM_MOUSEACTIVATE message. | 548 // touch based WM_MOUSEACTIVATE message. |
| 546 const wchar_t kIgnoreTouchMouseActivateForWindow[] = | 549 const wchar_t kIgnoreTouchMouseActivateForWindow[] = |
| 547 L"Chrome.IgnoreMouseActivate"; | 550 L"Chrome.IgnoreMouseActivate"; |
| 548 | 551 |
| 549 } // namespace views | 552 } // namespace views |
| 550 | 553 |
| 551 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 554 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |