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_WIDGET_NATIVE_WIDGET_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 typedef ScopedVector<ui::ViewProp> ViewProps; | 487 typedef ScopedVector<ui::ViewProp> ViewProps; |
488 typedef std::set<DWORD> TouchIDs; | 488 typedef std::set<DWORD> TouchIDs; |
489 | 489 |
490 // TODO(beng): This friendship can be removed once all methods relating to | 490 // TODO(beng): This friendship can be removed once all methods relating to |
491 // this object being a WindowImpl are moved to HWNDMessageHandler. | 491 // this object being a WindowImpl are moved to HWNDMessageHandler. |
492 friend HWNDMessageHandler; | 492 friend HWNDMessageHandler; |
493 | 493 |
494 // Overridden from HWNDMessageHandlerDelegate: | 494 // Overridden from HWNDMessageHandlerDelegate: |
495 virtual bool IsWidgetWindow() const OVERRIDE; | 495 virtual bool IsWidgetWindow() const OVERRIDE; |
496 virtual bool IsUsingCustomFrame() const OVERRIDE; | 496 virtual bool IsUsingCustomFrame() const OVERRIDE; |
| 497 virtual InputMethod* GetInputMethod() OVERRIDE; |
497 virtual void HandleAppDeactivated() OVERRIDE; | 498 virtual void HandleAppDeactivated() OVERRIDE; |
498 virtual bool HandleAppCommand(short command) OVERRIDE; | 499 virtual bool HandleAppCommand(short command) OVERRIDE; |
499 virtual void HandleCaptureLost() OVERRIDE; | 500 virtual void HandleCaptureLost() OVERRIDE; |
500 virtual void HandleClose() OVERRIDE; | 501 virtual void HandleClose() OVERRIDE; |
501 virtual bool HandleCommand(int command) OVERRIDE; | 502 virtual bool HandleCommand(int command) OVERRIDE; |
502 virtual void HandleDestroy() OVERRIDE; | 503 virtual void HandleDestroy() OVERRIDE; |
503 virtual void HandleDisplayChange() OVERRIDE; | 504 virtual void HandleDisplayChange() OVERRIDE; |
504 virtual void HandleGlassModeChange() OVERRIDE; | 505 virtual void HandleGlassModeChange() OVERRIDE; |
505 virtual void HandleBeginWMSizeMove() OVERRIDE; | 506 virtual void HandleBeginWMSizeMove() OVERRIDE; |
506 virtual void HandleEndWMSizeMove() OVERRIDE; | 507 virtual void HandleEndWMSizeMove() OVERRIDE; |
| 508 virtual void HandleMove() OVERRIDE; |
507 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; | 509 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; |
508 | 510 |
509 // Called after the WM_ACTIVATE message has been processed by the default | 511 // Called after the WM_ACTIVATE message has been processed by the default |
510 // windows procedure. | 512 // windows procedure. |
511 static void PostProcessActivateMessage(NativeWidgetWin* widget, | 513 static void PostProcessActivateMessage(NativeWidgetWin* widget, |
512 int activation_state); | 514 int activation_state); |
513 | 515 |
514 void SetInitParams(const Widget::InitParams& params); | 516 void SetInitParams(const Widget::InitParams& params); |
515 | 517 |
516 // Synchronously paints the invalid contents of the Widget. | 518 // Synchronously paints the invalid contents of the Widget. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 TouchIDs touch_ids_; | 706 TouchIDs touch_ids_; |
705 | 707 |
706 scoped_ptr<HWNDMessageHandler> message_handler_; | 708 scoped_ptr<HWNDMessageHandler> message_handler_; |
707 | 709 |
708 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 710 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
709 }; | 711 }; |
710 | 712 |
711 } // namespace views | 713 } // namespace views |
712 | 714 |
713 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 715 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |