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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // it reflects what the renderer process knows: it saves the state that is | 246 // it reflects what the renderer process knows: it saves the state that is |
247 // sent/received. | 247 // sent/received. |
248 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so | 248 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so |
249 // it is possible in some edge cases that a view was requested to be focused | 249 // it is possible in some edge cases that a view was requested to be focused |
250 // but it failed, thus HasFocus() returns false. | 250 // but it failed, thus HasFocus() returns false. |
251 bool is_focused() const { return is_focused_; } | 251 bool is_focused() const { return is_focused_; } |
252 | 252 |
253 // Called to notify the RenderWidget that it has lost the mouse lock. | 253 // Called to notify the RenderWidget that it has lost the mouse lock. |
254 void LostMouseLock(); | 254 void LostMouseLock(); |
255 | 255 |
| 256 // Notifies the RenderWidget that it lost the mouse lock. |
| 257 void SendMouseLockLost(); |
| 258 |
256 // Noifies the RenderWidget of the current mouse cursor visibility state. | 259 // Noifies the RenderWidget of the current mouse cursor visibility state. |
257 void SendCursorVisibilityState(bool is_visible); | 260 void SendCursorVisibilityState(bool is_visible); |
258 | 261 |
259 // Notifies the RenderWidgetHost that the View was destroyed. | 262 // Notifies the RenderWidgetHost that the View was destroyed. |
260 void ViewDestroyed(); | 263 void ViewDestroyed(); |
261 | 264 |
262 #if defined(OS_MACOSX) | 265 #if defined(OS_MACOSX) |
263 // Pause for a moment to wait for pending repaint or resize messages sent to | 266 // Pause for a moment to wait for pending repaint or resize messages sent to |
264 // the renderer to arrive. If pending resize messages are for an old window | 267 // the renderer to arrive. If pending resize messages are for an old window |
265 // size, then also pump through a new resize message if there is time. | 268 // size, then also pump through a new resize message if there is time. |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 #endif | 833 #endif |
831 | 834 |
832 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 835 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
833 | 836 |
834 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
835 }; | 838 }; |
836 | 839 |
837 } // namespace content | 840 } // namespace content |
838 | 841 |
839 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 842 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |