| 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 // Resizes the window to the bounds passed in. | 100 // Resizes the window to the bounds passed in. |
| 101 void SetBounds(const gfx::Rect& bounds); | 101 void SetBounds(const gfx::Rect& bounds); |
| 102 | 102 |
| 103 // The pointer to the containing RenderWidgetHostViewAura instance is passed | 103 // The pointer to the containing RenderWidgetHostViewAura instance is passed |
| 104 // here. | 104 // here. |
| 105 void set_host(RenderWidgetHostViewAura* host) { | 105 void set_host(RenderWidgetHostViewAura* host) { |
| 106 host_ = host; | 106 host_ = host; |
| 107 } | 107 } |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 virtual void OnFinalMessage(HWND hwnd) OVERRIDE; | 110 virtual void OnFinalMessage(HWND hwnd) override; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 LegacyRenderWidgetHostHWND(HWND parent); | 113 LegacyRenderWidgetHostHWND(HWND parent); |
| 114 ~LegacyRenderWidgetHostHWND(); | 114 ~LegacyRenderWidgetHostHWND(); |
| 115 | 115 |
| 116 bool Init(); | 116 bool Init(); |
| 117 | 117 |
| 118 // Returns the target to which the windows input events are forwarded. | 118 // Returns the target to which the windows input events are forwarded. |
| 119 static ui::WindowEventTarget* GetWindowEventTarget(HWND parent); | 119 static ui::WindowEventTarget* GetWindowEventTarget(HWND parent); |
| 120 | 120 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 143 | 143 |
| 144 RenderWidgetHostViewAura* host_; | 144 RenderWidgetHostViewAura* host_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); | 146 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace content | 149 } // namespace content |
| 150 | 150 |
| 151 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 151 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
| 152 | 152 |
| OLD | NEW |