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 <set> | 10 #include <set> |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 // |message| identifies the mouse message. | 476 // |message| identifies the mouse message. |
477 // |message_time| is the time when the message occurred. | 477 // |message_time| is the time when the message occurred. |
478 // |l_param| indicates the location of the mouse message. | 478 // |l_param| indicates the location of the mouse message. |
479 bool IsSynthesizedMouseMessage(unsigned int message, | 479 bool IsSynthesizedMouseMessage(unsigned int message, |
480 int message_time, | 480 int message_time, |
481 LPARAM l_param); | 481 LPARAM l_param); |
482 | 482 |
483 // Provides functionality to transition a frame to DWM. | 483 // Provides functionality to transition a frame to DWM. |
484 void PerformDwmTransition(); | 484 void PerformDwmTransition(); |
485 | 485 |
| 486 // Generates a touch event and adds it to the |touch_events| parameter. |
| 487 // |point| is the point where the touch was initiated. |
| 488 // |id| is the event id associated with the touch event. |
| 489 // |event_time| is the current time used for latency calculation. |
| 490 // |time_stamp| is the time delta associated with the message. |
| 491 void GenerateTouchEvent(ui::EventType event_type, |
| 492 const gfx::Point& point, |
| 493 unsigned int id, |
| 494 base::TimeTicks event_time, |
| 495 base::TimeDelta time_stamp, |
| 496 TouchEvents* touch_events); |
| 497 |
486 HWNDMessageHandlerDelegate* delegate_; | 498 HWNDMessageHandlerDelegate* delegate_; |
487 | 499 |
488 scoped_ptr<FullscreenHandler> fullscreen_handler_; | 500 scoped_ptr<FullscreenHandler> fullscreen_handler_; |
489 | 501 |
490 // Set to true in Close() and false is CloseNow(). | 502 // Set to true in Close() and false is CloseNow(). |
491 bool waiting_for_close_now_; | 503 bool waiting_for_close_now_; |
492 | 504 |
493 bool remove_standard_frame_; | 505 bool remove_standard_frame_; |
494 | 506 |
495 bool use_system_default_icon_; | 507 bool use_system_default_icon_; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 | 612 |
601 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 613 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
602 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 614 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
603 | 615 |
604 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 616 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
605 }; | 617 }; |
606 | 618 |
607 } // namespace views | 619 } // namespace views |
608 | 620 |
609 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 621 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |