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

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

Issue 2451143003: <webview>: Correctly shift focus between WebContents. (Closed)
Patch Set: Ready for review 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 // Indicates whether the RenderWidgetHost thinks it is focused. 244 // Indicates whether the RenderWidgetHost thinks it is focused.
245 // This is different from RenderWidgetHostView::HasFocus() in the sense that 245 // This is different from RenderWidgetHostView::HasFocus() in the sense that
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 // Support for focus tracking on multi-WebContents cases. Users other than
254 // WebContens and RenderWidgetHost should use Focus()/Blur().
255 void FocusDirect();
256 void BlurDirect();
257
253 // Called to notify the RenderWidget that it has lost the mouse lock. 258 // Called to notify the RenderWidget that it has lost the mouse lock.
254 void LostMouseLock(); 259 void LostMouseLock();
255 260
256 // Notifies the RenderWidget that it lost the mouse lock. 261 // Notifies the RenderWidget that it lost the mouse lock.
257 void SendMouseLockLost(); 262 void SendMouseLockLost();
258 263
259 // Noifies the RenderWidget of the current mouse cursor visibility state. 264 // Noifies the RenderWidget of the current mouse cursor visibility state.
260 void SendCursorVisibilityState(bool is_visible); 265 void SendCursorVisibilityState(bool is_visible);
261 266
262 // Notifies the RenderWidgetHost that the View was destroyed. 267 // Notifies the RenderWidgetHost that the View was destroyed.
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 #endif 867 #endif
863 868
864 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 869 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
865 870
866 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 871 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
867 }; 872 };
868 873
869 } // namespace content 874 } // namespace content
870 875
871 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 876 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698