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

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

Issue 2451143003: <webview>: Correctly shift focus between WebContents. (Closed)
Patch Set: Fix creis comments. Created 4 years, 1 month 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 // Indicates whether the RenderWidgetHost thinks it is focused. 270 // Indicates whether the RenderWidgetHost thinks it is focused.
271 // This is different from RenderWidgetHostView::HasFocus() in the sense that 271 // This is different from RenderWidgetHostView::HasFocus() in the sense that
272 // it reflects what the renderer process knows: it saves the state that is 272 // it reflects what the renderer process knows: it saves the state that is
273 // sent/received. 273 // sent/received.
274 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so 274 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so
275 // it is possible in some edge cases that a view was requested to be focused 275 // it is possible in some edge cases that a view was requested to be focused
276 // but it failed, thus HasFocus() returns false. 276 // but it failed, thus HasFocus() returns false.
277 bool is_focused() const { return is_focused_; } 277 bool is_focused() const { return is_focused_; }
278 278
279 // Support for focus tracking on multi-WebContents cases. This will notify all
280 // renderers involved in a page about a page-level focus update. Users other
281 // than WebContents and RenderWidgetHost should use Focus()/Blur().
282 void SetPageFocus(bool focused);
283
279 // Called to notify the RenderWidget that it has lost the mouse lock. 284 // Called to notify the RenderWidget that it has lost the mouse lock.
280 void LostMouseLock(); 285 void LostMouseLock();
281 286
282 // Notifies the RenderWidget that it lost the mouse lock. 287 // Notifies the RenderWidget that it lost the mouse lock.
283 void SendMouseLockLost(); 288 void SendMouseLockLost();
284 289
285 // Noifies the RenderWidget of the current mouse cursor visibility state. 290 // Noifies the RenderWidget of the current mouse cursor visibility state.
286 void SendCursorVisibilityState(bool is_visible); 291 void SendCursorVisibilityState(bool is_visible);
287 292
288 // Notifies the RenderWidgetHost that the View was destroyed. 293 // Notifies the RenderWidgetHost that the View was destroyed.
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 #endif 904 #endif
900 905
901 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 906 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
902 907
903 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 908 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
904 }; 909 };
905 910
906 } // namespace content 911 } // namespace content
907 912
908 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 913 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698