| 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 <atlcrack.h> | 9 #include <atlcrack.h> |
| 10 #include <atlwin.h> | 10 #include <atlwin.h> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 MESSAGE_HANDLER_EX(WM_WINDOWPOSCHANGED, OnWindowPosChanged) | 98 MESSAGE_HANDLER_EX(WM_WINDOWPOSCHANGED, OnWindowPosChanged) |
| 99 END_MSG_MAP() | 99 END_MSG_MAP() |
| 100 | 100 |
| 101 HWND hwnd() { return m_hWnd; } | 101 HWND hwnd() { return m_hWnd; } |
| 102 | 102 |
| 103 // Called when the child window is to be reparented to a new window. | 103 // Called when the child window is to be reparented to a new window. |
| 104 // The |parent| parameter contains the new parent window. | 104 // The |parent| parameter contains the new parent window. |
| 105 void UpdateParent(HWND parent); | 105 void UpdateParent(HWND parent); |
| 106 HWND GetParent(); | 106 HWND GetParent(); |
| 107 | 107 |
| 108 IAccessible* window_accessible() { return window_accessible_.get(); } | 108 IAccessible* window_accessible() { return window_accessible_.Get(); } |
| 109 | 109 |
| 110 // Functions to show and hide the window. | 110 // Functions to show and hide the window. |
| 111 void Show(); | 111 void Show(); |
| 112 void Hide(); | 112 void Hide(); |
| 113 | 113 |
| 114 // Resizes the window to the bounds passed in. | 114 // Resizes the window to the bounds passed in. |
| 115 void SetBounds(const gfx::Rect& bounds); | 115 void SetBounds(const gfx::Rect& bounds); |
| 116 | 116 |
| 117 // The pointer to the containing RenderWidgetHostViewAura instance is passed | 117 // The pointer to the containing RenderWidgetHostViewAura instance is passed |
| 118 // here. | 118 // here. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 std::unique_ptr<gfx::win::DirectManipulationHelper> | 165 std::unique_ptr<gfx::win::DirectManipulationHelper> |
| 166 direct_manipulation_helper_; | 166 direct_manipulation_helper_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); | 168 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| 172 | 172 |
| 173 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 173 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
| 174 | 174 |
| OLD | NEW |