| 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 WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ | 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ |
| 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ | 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ |
| 7 | 7 |
| 8 #include <windows.applicationmodel.core.h> | 8 #include <windows.applicationmodel.core.h> |
| 9 #include <windows.ui.core.h> | 9 #include <windows.ui.core.h> |
| 10 #include <windows.ui.input.h> | 10 #include <windows.ui.input.h> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 HRESULT OnWheel(winui::Core::ICoreWindow* sender, | 80 HRESULT OnWheel(winui::Core::ICoreWindow* sender, |
| 81 winui::Core::IPointerEventArgs* args); | 81 winui::Core::IPointerEventArgs* args); |
| 82 | 82 |
| 83 HRESULT OnKeyDown(winui::Core::ICoreWindow* sender, | 83 HRESULT OnKeyDown(winui::Core::ICoreWindow* sender, |
| 84 winui::Core::IKeyEventArgs* args); | 84 winui::Core::IKeyEventArgs* args); |
| 85 | 85 |
| 86 HRESULT OnKeyUp(winui::Core::ICoreWindow* sender, | 86 HRESULT OnKeyUp(winui::Core::ICoreWindow* sender, |
| 87 winui::Core::IKeyEventArgs* args); | 87 winui::Core::IKeyEventArgs* args); |
| 88 | 88 |
| 89 // Invoked for system keys like Alt, etc. |
| 90 HRESULT OnAcceleratorKeyDown(winui::Core::ICoreDispatcher* sender, |
| 91 winui::Core::IAcceleratorKeyEventArgs* args); |
| 92 |
| 89 HRESULT OnCharacterReceived(winui::Core::ICoreWindow* sender, | 93 HRESULT OnCharacterReceived(winui::Core::ICoreWindow* sender, |
| 90 winui::Core::ICharacterReceivedEventArgs* args); | 94 winui::Core::ICharacterReceivedEventArgs* args); |
| 91 | 95 |
| 92 HRESULT OnVisibilityChanged(winui::Core::ICoreWindow* sender, | 96 HRESULT OnVisibilityChanged(winui::Core::ICoreWindow* sender, |
| 93 winui::Core::IVisibilityChangedEventArgs* args); | 97 winui::Core::IVisibilityChangedEventArgs* args); |
| 94 | 98 |
| 95 mswr::ComPtr<winui::Core::ICoreWindow> window_; | 99 mswr::ComPtr<winui::Core::ICoreWindow> window_; |
| 96 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_; | 100 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_; |
| 97 EventRegistrationToken activated_token_; | 101 EventRegistrationToken activated_token_; |
| 98 EventRegistrationToken pointermoved_token_; | 102 EventRegistrationToken pointermoved_token_; |
| 99 EventRegistrationToken pointerpressed_token_; | 103 EventRegistrationToken pointerpressed_token_; |
| 100 EventRegistrationToken pointerreleased_token_; | 104 EventRegistrationToken pointerreleased_token_; |
| 101 EventRegistrationToken wheel_token_; | 105 EventRegistrationToken wheel_token_; |
| 102 EventRegistrationToken keydown_token_; | 106 EventRegistrationToken keydown_token_; |
| 103 EventRegistrationToken keyup_token_; | 107 EventRegistrationToken keyup_token_; |
| 104 EventRegistrationToken character_received_token_; | 108 EventRegistrationToken character_received_token_; |
| 105 EventRegistrationToken visibility_changed_token_; | 109 EventRegistrationToken visibility_changed_token_; |
| 110 EventRegistrationToken accel_keydown_token_; |
| 111 EventRegistrationToken accel_keyup_token_; |
| 106 | 112 |
| 107 // Keep state about which button is currently down, if any, as PointerMoved | 113 // Keep state about which button is currently down, if any, as PointerMoved |
| 108 // events do not contain that state, but Ash's MouseEvents need it. | 114 // events do not contain that state, but Ash's MouseEvents need it. |
| 109 ui::EventFlags mouse_down_flags_; | 115 ui::EventFlags mouse_down_flags_; |
| 110 | 116 |
| 111 metro_driver::Direct3DHelper direct3d_helper_; | 117 metro_driver::Direct3DHelper direct3d_helper_; |
| 112 | 118 |
| 113 IPC::ChannelProxy* ui_channel_; | 119 IPC::ChannelProxy* ui_channel_; |
| 114 }; | 120 }; |
| 115 | 121 |
| 116 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ | 122 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ |
| OLD | NEW |