Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1980133002: Implement pointer lock API for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // it reflects what the renderer process knows: it saves the state that is 238 // it reflects what the renderer process knows: it saves the state that is
239 // sent/received. 239 // sent/received.
240 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so 240 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so
241 // it is possible in some edge cases that a view was requested to be focused 241 // it is possible in some edge cases that a view was requested to be focused
242 // but it failed, thus HasFocus() returns false. 242 // but it failed, thus HasFocus() returns false.
243 bool is_focused() const { return is_focused_; } 243 bool is_focused() const { return is_focused_; }
244 244
245 // Called to notify the RenderWidget that it has lost the mouse lock. 245 // Called to notify the RenderWidget that it has lost the mouse lock.
246 void LostMouseLock(); 246 void LostMouseLock();
247 247
248 // Notifies the RenderWidget that it lost the mouse lock.
249 void SendMouseLockLost();
250
248 // Noifies the RenderWidget of the current mouse cursor visibility state. 251 // Noifies the RenderWidget of the current mouse cursor visibility state.
249 void SendCursorVisibilityState(bool is_visible); 252 void SendCursorVisibilityState(bool is_visible);
250 253
251 // Notifies the RenderWidgetHost that the View was destroyed. 254 // Notifies the RenderWidgetHost that the View was destroyed.
252 void ViewDestroyed(); 255 void ViewDestroyed();
253 256
254 #if defined(OS_MACOSX) 257 #if defined(OS_MACOSX)
255 // Pause for a moment to wait for pending repaint or resize messages sent to 258 // Pause for a moment to wait for pending repaint or resize messages sent to
256 // the renderer to arrive. If pending resize messages are for an old window 259 // the renderer to arrive. If pending resize messages are for an old window
257 // size, then also pump through a new resize message if there is time. 260 // size, then also pump through a new resize message if there is time.
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 base::TimeDelta new_content_rendering_delay_; 813 base::TimeDelta new_content_rendering_delay_;
811 814
812 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 815 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
813 816
814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 817 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
815 }; 818 };
816 819
817 } // namespace content 820 } // namespace content
818 821
819 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 822 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698