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 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 | 599 |
600 // Copy of custom window region specified via SetRegion(), if any. | 600 // Copy of custom window region specified via SetRegion(), if any. |
601 base::win::ScopedRegion custom_window_region_; | 601 base::win::ScopedRegion custom_window_region_; |
602 | 602 |
603 // If > 0 indicates a menu is running (we're showing a native menu). | 603 // If > 0 indicates a menu is running (we're showing a native menu). |
604 int menu_depth_; | 604 int menu_depth_; |
605 | 605 |
606 // Generates touch-ids for touch-events. | 606 // Generates touch-ids for touch-events. |
607 ui::SequentialIDGenerator id_generator_; | 607 ui::SequentialIDGenerator id_generator_; |
608 | 608 |
609 // Indicates if the window needs the WS_VSCROLL and WS_HSCROLL styles. | |
610 bool needs_scroll_styles_; | |
611 | |
612 // Set to true if we are in the context of a sizing operation. | 609 // Set to true if we are in the context of a sizing operation. |
613 bool in_size_loop_; | 610 bool in_size_loop_; |
614 | 611 |
615 // Stores a pointer to the WindowEventTarget interface implemented by this | 612 // Stores a pointer to the WindowEventTarget interface implemented by this |
616 // class. Allows callers to retrieve the interface pointer. | 613 // class. Allows callers to retrieve the interface pointer. |
617 std::unique_ptr<ui::ViewProp> prop_window_target_; | 614 std::unique_ptr<ui::ViewProp> prop_window_target_; |
618 | 615 |
619 // Number of active touch down contexts. This is incremented on touch down | 616 // Number of active touch down contexts. This is incremented on touch down |
620 // events and decremented later using a delayed task. | 617 // events and decremented later using a delayed task. |
621 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to | 618 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 681 |
685 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 682 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
686 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 683 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
687 | 684 |
688 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 685 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
689 }; | 686 }; |
690 | 687 |
691 } // namespace views | 688 } // namespace views |
692 | 689 |
693 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 690 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |