| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlwin.h> | 9 #include <atlwin.h> |
| 10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void OnManagerDeleted(); | 101 void OnManagerDeleted(); |
| 102 | 102 |
| 103 // Functions to show and hide the window. | 103 // Functions to show and hide the window. |
| 104 void Show(); | 104 void Show(); |
| 105 void Hide(); | 105 void Hide(); |
| 106 | 106 |
| 107 // Resizes the window to the bounds passed in. | 107 // Resizes the window to the bounds passed in. |
| 108 void SetBounds(const gfx::Rect& bounds); | 108 void SetBounds(const gfx::Rect& bounds); |
| 109 | 109 |
| 110 protected: | |
| 111 virtual void OnFinalMessage(HWND hwnd) OVERRIDE; | |
| 112 | |
| 113 private: | 110 private: |
| 114 LegacyRenderWidgetHostHWND(HWND parent); | 111 LegacyRenderWidgetHostHWND(HWND parent); |
| 115 | 112 |
| 116 bool Init(); | 113 bool Init(); |
| 117 | 114 |
| 118 // Returns the target to which the windows input events are forwarded. | 115 // Returns the target to which the windows input events are forwarded. |
| 119 static ui::WindowEventTarget* GetWindowEventTarget(HWND parent); | 116 static ui::WindowEventTarget* GetWindowEventTarget(HWND parent); |
| 120 | 117 |
| 121 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param); | 118 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param); |
| 122 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param); | 119 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 142 // Set to true if we turned on mouse tracking. | 139 // Set to true if we turned on mouse tracking. |
| 143 bool mouse_tracking_enabled_; | 140 bool mouse_tracking_enabled_; |
| 144 | 141 |
| 145 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); | 142 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); |
| 146 }; | 143 }; |
| 147 | 144 |
| 148 } // namespace content | 145 } // namespace content |
| 149 | 146 |
| 150 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 147 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
| 151 | 148 |
| OLD | NEW |