| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 virtual bool OnMessageReceived(const IPC::Message& msg); | 169 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 170 | 170 |
| 171 // Sends a message to the corresponding object in the renderer. | 171 // Sends a message to the corresponding object in the renderer. |
| 172 virtual bool Send(IPC::Message* msg); | 172 virtual bool Send(IPC::Message* msg); |
| 173 | 173 |
| 174 // Called to notify the RenderWidget that it has been hidden or restored from | 174 // Called to notify the RenderWidget that it has been hidden or restored from |
| 175 // having been hidden. | 175 // having been hidden. |
| 176 void WasHidden(); | 176 void WasHidden(); |
| 177 void WasRestored(); | 177 void WasRestored(); |
| 178 | 178 |
| 179 // Called to notify the RenderWidget that it has been visibly swapped out, |
| 180 // such that it is safe for the process to exit if not otherwise in use. |
| 181 void WasSwappedOut(); |
| 182 |
| 179 // Called to notify the RenderWidget that it has been resized. | 183 // Called to notify the RenderWidget that it has been resized. |
| 180 void WasResized(); | 184 void WasResized(); |
| 181 | 185 |
| 182 // Called to notify the RenderWidget that its associated native window got | 186 // Called to notify the RenderWidget that its associated native window got |
| 183 // focused. | 187 // focused. |
| 184 virtual void GotFocus(); | 188 virtual void GotFocus(); |
| 185 | 189 |
| 186 // Tells the renderer it got/lost focus. | 190 // Tells the renderer it got/lost focus. |
| 187 void Focus(); | 191 void Focus(); |
| 188 void Blur(); | 192 void Blur(); |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 674 |
| 671 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 675 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
| 672 | 676 |
| 673 // The last scroll offset of the render widget. | 677 // The last scroll offset of the render widget. |
| 674 gfx::Point last_scroll_offset_; | 678 gfx::Point last_scroll_offset_; |
| 675 | 679 |
| 676 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 677 }; | 681 }; |
| 678 | 682 |
| 679 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |