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

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

Issue 2451143003: <webview>: Correctly shift focus between WebContents. (Closed)
Patch Set: forgot rebase 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // Indicates whether the RenderWidgetHost thinks it is focused. 237 // Indicates whether the RenderWidgetHost thinks it is focused.
238 // This is different from RenderWidgetHostView::HasFocus() in the sense that 238 // This is different from RenderWidgetHostView::HasFocus() in the sense that
239 // it reflects what the renderer process knows: it saves the state that is 239 // it reflects what the renderer process knows: it saves the state that is
240 // sent/received. 240 // sent/received.
241 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so 241 // RenderWidgetHostView::HasFocus() is checking whether the view is focused so
242 // it is possible in some edge cases that a view was requested to be focused 242 // it is possible in some edge cases that a view was requested to be focused
243 // but it failed, thus HasFocus() returns false. 243 // but it failed, thus HasFocus() returns false.
244 bool is_focused() const { return is_focused_; } 244 bool is_focused() const { return is_focused_; }
245 245
246 // Support for focus tracking on multi-WebContents cases. This will notify all
247 // renderers involved in a page about a page-level focus update. Users other
248 // than WebContents and RenderWidgetHost should use Focus()/Blur().
249 void SetPageFocus(bool focused);
250
246 // Called to notify the RenderWidget that it has lost the mouse lock. 251 // Called to notify the RenderWidget that it has lost the mouse lock.
247 void LostMouseLock(); 252 void LostMouseLock();
248 253
249 // Notifies the RenderWidget that it lost the mouse lock. 254 // Notifies the RenderWidget that it lost the mouse lock.
250 void SendMouseLockLost(); 255 void SendMouseLockLost();
251 256
252 // Noifies the RenderWidget of the current mouse cursor visibility state. 257 // Noifies the RenderWidget of the current mouse cursor visibility state.
253 void SendCursorVisibilityState(bool is_visible); 258 void SendCursorVisibilityState(bool is_visible);
254 259
255 // Notifies the RenderWidgetHost that the View was destroyed. 260 // Notifies the RenderWidgetHost that the View was destroyed.
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 #endif 860 #endif
856 861
857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 862 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
858 863
859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 864 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
860 }; 865 };
861 866
862 } // namespace content 867 } // namespace content
863 868
864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 869 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698