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; | |
502 virtual InputMethod* GetInputMethod() OVERRIDE; | 497 virtual InputMethod* GetInputMethod() OVERRIDE; |
503 virtual void HandleAppDeactivated() OVERRIDE; | 498 virtual void HandleAppDeactivated() OVERRIDE; |
504 virtual bool HandleAppCommand(short command) OVERRIDE; | 499 virtual bool HandleAppCommand(short command) OVERRIDE; |
505 virtual void HandleCaptureLost() OVERRIDE; | 500 virtual void HandleCaptureLost() OVERRIDE; |
506 virtual void HandleClose() OVERRIDE; | 501 virtual void HandleClose() OVERRIDE; |
507 virtual bool HandleCommand(int command) OVERRIDE; | 502 virtual bool HandleCommand(int command) OVERRIDE; |
508 virtual void HandleDestroy() OVERRIDE; | 503 virtual void HandleDestroy() OVERRIDE; |
509 virtual void HandleDisplayChange() OVERRIDE; | 504 virtual void HandleDisplayChange() OVERRIDE; |
510 virtual void HandleGlassModeChange() OVERRIDE; | 505 virtual void HandleGlassModeChange() OVERRIDE; |
511 virtual void HandleBeginWMSizeMove() OVERRIDE; | 506 virtual void HandleBeginWMSizeMove() OVERRIDE; |
512 virtual void HandleEndWMSizeMove() OVERRIDE; | 507 virtual void HandleEndWMSizeMove() OVERRIDE; |
513 virtual void HandleMove() OVERRIDE; | 508 virtual void HandleMove() OVERRIDE; |
514 virtual void HandleNativeFocus(HWND last_focused_window) OVERRIDE; | |
515 virtual void HandleNativeBlur(HWND focused_window) OVERRIDE; | |
516 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; | 509 virtual NativeWidgetWin* AsNativeWidgetWin() OVERRIDE; |
517 | 510 |
518 // 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 |
519 // windows procedure. | 512 // windows procedure. |
520 static void PostProcessActivateMessage(NativeWidgetWin* widget, | 513 static void PostProcessActivateMessage(NativeWidgetWin* widget, |
521 int activation_state); | 514 int activation_state); |
522 | 515 |
523 void SetInitParams(const Widget::InitParams& params); | 516 void SetInitParams(const Widget::InitParams& params); |
524 | 517 |
525 // Synchronously paints the invalid contents of the Widget. | 518 // Synchronously paints the invalid contents of the Widget. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 TouchIDs touch_ids_; | 701 TouchIDs touch_ids_; |
709 | 702 |
710 scoped_ptr<HWNDMessageHandler> message_handler_; | 703 scoped_ptr<HWNDMessageHandler> message_handler_; |
711 | 704 |
712 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 705 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
713 }; | 706 }; |
714 | 707 |
715 } // namespace views | 708 } // namespace views |
716 | 709 |
717 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 710 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |