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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 HRESULT OnCharacterReceived(winui::Core::ICoreWindow* sender, | 105 HRESULT OnCharacterReceived(winui::Core::ICoreWindow* sender, |
106 winui::Core::ICharacterReceivedEventArgs* args); | 106 winui::Core::ICharacterReceivedEventArgs* args); |
107 | 107 |
108 HRESULT OnVisibilityChanged(winui::Core::ICoreWindow* sender, | 108 HRESULT OnVisibilityChanged(winui::Core::ICoreWindow* sender, |
109 winui::Core::IVisibilityChangedEventArgs* args); | 109 winui::Core::IVisibilityChangedEventArgs* args); |
110 | 110 |
111 HRESULT OnWindowActivated(winui::Core::ICoreWindow* sender, | 111 HRESULT OnWindowActivated(winui::Core::ICoreWindow* sender, |
112 winui::Core::IWindowActivatedEventArgs* args); | 112 winui::Core::IWindowActivatedEventArgs* args); |
113 | 113 |
| 114 HRESULT OnSizeChanged(winui::Core::ICoreWindow* sender, |
| 115 winui::Core::IWindowSizeChangedEventArgs* args); |
| 116 |
114 mswr::ComPtr<winui::Core::ICoreWindow> window_; | 117 mswr::ComPtr<winui::Core::ICoreWindow> window_; |
115 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_; | 118 mswr::ComPtr<winapp::Core::ICoreApplicationView> view_; |
116 EventRegistrationToken activated_token_; | 119 EventRegistrationToken activated_token_; |
117 EventRegistrationToken pointermoved_token_; | 120 EventRegistrationToken pointermoved_token_; |
118 EventRegistrationToken pointerpressed_token_; | 121 EventRegistrationToken pointerpressed_token_; |
119 EventRegistrationToken pointerreleased_token_; | 122 EventRegistrationToken pointerreleased_token_; |
120 EventRegistrationToken wheel_token_; | 123 EventRegistrationToken wheel_token_; |
121 EventRegistrationToken keydown_token_; | 124 EventRegistrationToken keydown_token_; |
122 EventRegistrationToken keyup_token_; | 125 EventRegistrationToken keyup_token_; |
123 EventRegistrationToken character_received_token_; | 126 EventRegistrationToken character_received_token_; |
124 EventRegistrationToken visibility_changed_token_; | 127 EventRegistrationToken visibility_changed_token_; |
125 EventRegistrationToken accel_keydown_token_; | 128 EventRegistrationToken accel_keydown_token_; |
126 EventRegistrationToken accel_keyup_token_; | 129 EventRegistrationToken accel_keyup_token_; |
127 EventRegistrationToken window_activated_token_; | 130 EventRegistrationToken window_activated_token_; |
| 131 EventRegistrationToken sizechange_token_; |
128 | 132 |
129 // Keep state about which button is currently down, if any, as PointerMoved | 133 // Keep state about which button is currently down, if any, as PointerMoved |
130 // events do not contain that state, but Ash's MouseEvents need it. | 134 // events do not contain that state, but Ash's MouseEvents need it. |
131 ui::EventFlags mouse_down_flags_; | 135 ui::EventFlags mouse_down_flags_; |
132 | 136 |
133 // Set the D3D swap chain and nothing else. | 137 // Set the D3D swap chain and nothing else. |
134 metro_driver::Direct3DHelper direct3d_helper_; | 138 metro_driver::Direct3DHelper direct3d_helper_; |
135 | 139 |
136 // The channel to Chrome, in particular to the MetroViewerProcessHost. | 140 // The channel to Chrome, in particular to the MetroViewerProcessHost. |
137 IPC::ChannelProxy* ui_channel_; | 141 IPC::ChannelProxy* ui_channel_; |
138 | 142 |
139 // The actual window behind the view surface. | 143 // The actual window behind the view surface. |
140 HWND core_window_hwnd_; | 144 HWND core_window_hwnd_; |
141 }; | 145 }; |
142 | 146 |
143 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ | 147 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ |
OLD | NEW |