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

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: addressing comments Created 4 years, 7 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
nasko 2016/05/25 21:12:01 nit: Either "renderer process" or "RenderWidget",
lfg 2016/05/31 21:13:20 Done.
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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 base::TimeDelta new_content_rendering_delay_; 812 base::TimeDelta new_content_rendering_delay_;
810 813
811 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 814 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
812 815
813 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 816 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
814 }; 817 };
815 818
816 } // namespace content 819 } // namespace content
817 820
818 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 821 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698