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

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: 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. 378 // Clear focus from this frame in the renderer process and set |focused_ftn|
379 void ClearFocus(); 379 // as the new focused frame. This is only called when |focused_ftn| is in a
380 // different process from this frame.
381 void ClearFocus(FrameTreeNode* focused_ftn);
380 382
381 // Deletes the current selection plus the specified number of characters 383 // Deletes the current selection plus the specified number of characters
382 // before and after the selection or caret. 384 // before and after the selection or caret.
383 void ExtendSelectionAndDelete(size_t before, size_t after); 385 void ExtendSelectionAndDelete(size_t before, size_t after);
384 386
385 // Notifies the RenderFrame that the JavaScript message that was shown was 387 // Notifies the RenderFrame that the JavaScript message that was shown was
386 // closed by the user. 388 // closed by the user.
387 void JavaScriptDialogClosed(IPC::Message* reply_msg, 389 void JavaScriptDialogClosed(IPC::Message* reply_msg,
388 bool success, 390 bool success,
389 const base::string16& user_input, 391 const base::string16& user_input,
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 800
799 // NOTE: This must be the last member. 801 // NOTE: This must be the last member.
800 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 802 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
801 803
802 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 804 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
803 }; 805 };
804 806
805 } // namespace content 807 } // namespace content
806 808
807 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 809 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698