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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Change plumbing a bit: use focusDocumentView on WebView and remove clearFocus from WebLocalFrame Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // Returns true if a call to DispatchBeforeUnload will actually send the 368 // Returns true if a call to DispatchBeforeUnload will actually send the
369 // BeforeUnload IPC. This is the case if the current renderer is live and this 369 // BeforeUnload IPC. This is the case if the current renderer is live and this
370 // frame is the main frame. 370 // frame is the main frame.
371 bool ShouldDispatchBeforeUnload(); 371 bool ShouldDispatchBeforeUnload();
372 372
373 // Update the frame's opener in the renderer process in response to the 373 // Update the frame's opener in the renderer process in response to the
374 // opener being modified (e.g., with window.open or being set to null) in 374 // opener being modified (e.g., with window.open or being set to null) in
375 // another renderer process. 375 // another renderer process.
376 void UpdateOpener(); 376 void UpdateOpener();
377 377
378 // Clear focus from this frame in the renderer process.
379 void ClearFocus();
380
381 // Deletes the current selection plus the specified number of characters 378 // Deletes the current selection plus the specified number of characters
382 // before and after the selection or caret. 379 // before and after the selection or caret.
383 void ExtendSelectionAndDelete(size_t before, size_t after); 380 void ExtendSelectionAndDelete(size_t before, size_t after);
384 381
385 // Notifies the RenderFrame that the JavaScript message that was shown was 382 // Notifies the RenderFrame that the JavaScript message that was shown was
386 // closed by the user. 383 // closed by the user.
387 void JavaScriptDialogClosed(IPC::Message* reply_msg, 384 void JavaScriptDialogClosed(IPC::Message* reply_msg,
388 bool success, 385 bool success,
389 const base::string16& user_input, 386 const base::string16& user_input,
390 bool dialog_was_suppressed); 387 bool dialog_was_suppressed);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 795
799 // NOTE: This must be the last member. 796 // NOTE: This must be the last member.
800 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 797 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
801 798
802 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 799 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
803 }; 800 };
804 801
805 } // namespace content 802 } // namespace content
806 803
807 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 804 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698