Chromium Code Reviews| 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 532 | 532 |
| 533 // If > 0 indicates a menu is running (we're showing a native menu). | 533 // If > 0 indicates a menu is running (we're showing a native menu). |
| 534 int menu_depth_; | 534 int menu_depth_; |
| 535 | 535 |
| 536 // A factory used to lookup appbar autohide edges. | 536 // A factory used to lookup appbar autohide edges. |
| 537 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; | 537 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; |
| 538 | 538 |
| 539 // Generates touch-ids for touch-events. | 539 // Generates touch-ids for touch-events. |
| 540 ui::SequentialIDGenerator id_generator_; | 540 ui::SequentialIDGenerator id_generator_; |
| 541 | 541 |
| 542 // Indicates if the window has the WS_VSCROLL and WS_HSCROLL styles set. | 542 // Indicates if the window needs the WS_VSCROLL and WS_HSCROLL styles. |
| 543 bool scroll_styles_set_; | 543 bool needs_scroll_styles_; |
| 544 | |
| 545 // Set to true if we are in the context of a sizing or moving operation. | |
| 546 bool size_move_loop_; | |
|
sky
2014/01/15 17:29:01
nit: in_size_move_loop_.
ananta
2014/01/15 20:10:16
Done.
| |
| 544 | 547 |
| 545 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 548 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 546 }; | 549 }; |
| 547 | 550 |
| 548 // This window property if set on the window does not activate the window for a | 551 // This window property if set on the window does not activate the window for a |
| 549 // touch based WM_MOUSEACTIVATE message. | 552 // touch based WM_MOUSEACTIVATE message. |
| 550 const wchar_t kIgnoreTouchMouseActivateForWindow[] = | 553 const wchar_t kIgnoreTouchMouseActivateForWindow[] = |
| 551 L"Chrome.IgnoreMouseActivate"; | 554 L"Chrome.IgnoreMouseActivate"; |
| 552 | 555 |
| 553 } // namespace views | 556 } // namespace views |
| 554 | 557 |
| 555 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 558 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |