| 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 14 matching lines...) Expand all Loading... |
| 25 ChromeAppViewAsh(); | 25 ChromeAppViewAsh(); |
| 26 ~ChromeAppViewAsh(); | 26 ~ChromeAppViewAsh(); |
| 27 | 27 |
| 28 // IViewProvider overrides. | 28 // IViewProvider overrides. |
| 29 IFACEMETHOD(Initialize)(winapp::Core::ICoreApplicationView* view); | 29 IFACEMETHOD(Initialize)(winapp::Core::ICoreApplicationView* view); |
| 30 IFACEMETHOD(SetWindow)(winui::Core::ICoreWindow* window); | 30 IFACEMETHOD(SetWindow)(winui::Core::ICoreWindow* window); |
| 31 IFACEMETHOD(Load)(HSTRING entryPoint); | 31 IFACEMETHOD(Load)(HSTRING entryPoint); |
| 32 IFACEMETHOD(Run)(); | 32 IFACEMETHOD(Run)(); |
| 33 IFACEMETHOD(Uninitialize)(); | 33 IFACEMETHOD(Uninitialize)(); |
| 34 | 34 |
| 35 void OnSetCursor(HCURSOR cursor); |
| 36 |
| 35 private: | 37 private: |
| 36 HRESULT OnActivate(winapp::Core::ICoreApplicationView* view, | 38 HRESULT OnActivate(winapp::Core::ICoreApplicationView* view, |
| 37 winapp::Activation::IActivatedEventArgs* args); | 39 winapp::Activation::IActivatedEventArgs* args); |
| 38 | 40 |
| 39 HRESULT OnPointerMoved(winui::Core::ICoreWindow* sender, | 41 HRESULT OnPointerMoved(winui::Core::ICoreWindow* sender, |
| 40 winui::Core::IPointerEventArgs* args); | 42 winui::Core::IPointerEventArgs* args); |
| 41 | 43 |
| 42 HRESULT OnPointerPressed(winui::Core::ICoreWindow* sender, | 44 HRESULT OnPointerPressed(winui::Core::ICoreWindow* sender, |
| 43 winui::Core::IPointerEventArgs* args); | 45 winui::Core::IPointerEventArgs* args); |
| 44 | 46 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 75 // Keep state about which button is currently down, if any, as PointerMoved | 77 // Keep state about which button is currently down, if any, as PointerMoved |
| 76 // events do not contain that state, but Ash's MouseEvents need it. | 78 // events do not contain that state, but Ash's MouseEvents need it. |
| 77 ui::EventFlags mouse_down_flags_; | 79 ui::EventFlags mouse_down_flags_; |
| 78 | 80 |
| 79 metro_driver::Direct3DHelper direct3d_helper_; | 81 metro_driver::Direct3DHelper direct3d_helper_; |
| 80 | 82 |
| 81 IPC::ChannelProxy* ui_channel_; | 83 IPC::ChannelProxy* ui_channel_; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ | 86 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ |
| OLD | NEW |