| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // it reflects what the renderer process knows: it saves the state that is | 237 // it reflects what the renderer process knows: it saves the state that is |
| 238 // sent/received. | 238 // sent/received. |
| 239 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so | 239 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so |
| 240 // it is possible in some edge cases that a view was requested to be focused | 240 // it is possible in some edge cases that a view was requested to be focused |
| 241 // but it failed, thus HasFocus() returns false. | 241 // but it failed, thus HasFocus() returns false. |
| 242 bool is_focused() const { return is_focused_; } | 242 bool is_focused() const { return is_focused_; } |
| 243 | 243 |
| 244 // Called to notify the RenderWidget that it has lost the mouse lock. | 244 // Called to notify the RenderWidget that it has lost the mouse lock. |
| 245 void LostMouseLock(); | 245 void LostMouseLock(); |
| 246 | 246 |
| 247 // Notifies the renderer that the widget lost the mouse lock. |
| 248 void SendMouseLockLost(); |
| 249 |
| 247 // Noifies the RenderWidget of the current mouse cursor visibility state. | 250 // Noifies the RenderWidget of the current mouse cursor visibility state. |
| 248 void SendCursorVisibilityState(bool is_visible); | 251 void SendCursorVisibilityState(bool is_visible); |
| 249 | 252 |
| 250 // Notifies the RenderWidgetHost that the View was destroyed. | 253 // Notifies the RenderWidgetHost that the View was destroyed. |
| 251 void ViewDestroyed(); | 254 void ViewDestroyed(); |
| 252 | 255 |
| 253 #if defined(OS_MACOSX) | 256 #if defined(OS_MACOSX) |
| 254 // Pause for a moment to wait for pending repaint or resize messages sent to | 257 // Pause for a moment to wait for pending repaint or resize messages sent to |
| 255 // the renderer to arrive. If pending resize messages are for an old window | 258 // the renderer to arrive. If pending resize messages are for an old window |
| 256 // size, then also pump through a new resize message if there is time. | 259 // size, then also pump through a new resize message if there is time. |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 base::TimeDelta new_content_rendering_delay_; | 821 base::TimeDelta new_content_rendering_delay_; |
| 819 | 822 |
| 820 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 823 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 821 | 824 |
| 822 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 825 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 823 }; | 826 }; |
| 824 | 827 |
| 825 } // namespace content | 828 } // namespace content |
| 826 | 829 |
| 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 830 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |