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 bool CanResize() const OVERRIDE; |
| 498 virtual bool CanMaximize() const OVERRIDE; |
| 499 virtual bool CanActivate() const OVERRIDE; |
| 500 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 501 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* path) OVERRIDE; |
497 virtual InputMethod* GetInputMethod() OVERRIDE; | 502 virtual InputMethod* GetInputMethod() OVERRIDE; |
498 virtual void HandleAppDeactivated() OVERRIDE; | 503 virtual void HandleAppDeactivated() OVERRIDE; |
499 virtual bool HandleAppCommand(short command) OVERRIDE; | 504 virtual bool HandleAppCommand(short command) OVERRIDE; |
500 virtual void HandleCaptureLost() OVERRIDE; | 505 virtual void HandleCaptureLost() OVERRIDE; |
501 virtual void HandleClose() OVERRIDE; | 506 virtual void HandleClose() OVERRIDE; |
502 virtual bool HandleCommand(int command) OVERRIDE; | 507 virtual bool HandleCommand(int command) OVERRIDE; |
503 virtual void HandleDestroy() OVERRIDE; | 508 virtual void HandleDestroy() OVERRIDE; |
504 virtual void HandleDisplayChange() OVERRIDE; | 509 virtual void HandleDisplayChange() OVERRIDE; |
505 virtual void HandleGlassModeChange() OVERRIDE; | 510 virtual void HandleGlassModeChange() OVERRIDE; |
506 virtual void HandleBeginWMSizeMove() OVERRIDE; | 511 virtual void HandleBeginWMSizeMove() OVERRIDE; |
507 virtual void HandleEndWMSizeMove() OVERRIDE; | 512 virtual void HandleEndWMSizeMove() OVERRIDE; |
508 virtual void HandleMove() OVERRIDE; | 513 virtual void HandleMove() OVERRIDE; |
| 514 virtual void HandleNativeFocus(HWND last_focused_window) OVERRIDE; |
| 515 virtual void HandleNativeBlur(HWND focused_window) OVERRIDE; |
509 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; | 516 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; |
510 | 517 |
511 // Called after the WM_ACTIVATE message has been processed by the default | 518 // Called after the WM_ACTIVATE message has been processed by the default |
512 // windows procedure. | 519 // windows procedure. |
513 static void PostProcessActivateMessage(NativeWidgetWin* widget, | 520 static void PostProcessActivateMessage(NativeWidgetWin* widget, |
514 int activation_state); | 521 int activation_state); |
515 | 522 |
516 void SetInitParams(const Widget::InitParams& params); | 523 void SetInitParams(const Widget::InitParams& params); |
517 | 524 |
518 // Synchronously paints the invalid contents of the Widget. | 525 // Synchronously paints the invalid contents of the Widget. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 TouchIDs touch_ids_; | 713 TouchIDs touch_ids_; |
707 | 714 |
708 scoped_ptr<HWNDMessageHandler> message_handler_; | 715 scoped_ptr<HWNDMessageHandler> message_handler_; |
709 | 716 |
710 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 717 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
711 }; | 718 }; |
712 | 719 |
713 } // namespace views | 720 } // namespace views |
714 | 721 |
715 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 722 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |