OLD | NEW |
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // Returns true if a call to DispatchBeforeUnload will actually send the | 366 // Returns true if a call to DispatchBeforeUnload will actually send the |
367 // BeforeUnload IPC. This is the case if the current renderer is live and this | 367 // BeforeUnload IPC. This is the case if the current renderer is live and this |
368 // frame is the main frame. | 368 // frame is the main frame. |
369 bool ShouldDispatchBeforeUnload(); | 369 bool ShouldDispatchBeforeUnload(); |
370 | 370 |
371 // Update the frame's opener in the renderer process in response to the | 371 // Update the frame's opener in the renderer process in response to the |
372 // opener being modified (e.g., with window.open or being set to null) in | 372 // opener being modified (e.g., with window.open or being set to null) in |
373 // another renderer process. | 373 // another renderer process. |
374 void UpdateOpener(); | 374 void UpdateOpener(); |
375 | 375 |
| 376 // Clear focus from this frame in the renderer process. |
| 377 void ClearFocus(); |
| 378 |
376 // Deletes the current selection plus the specified number of characters | 379 // Deletes the current selection plus the specified number of characters |
377 // before and after the selection or caret. | 380 // before and after the selection or caret. |
378 void ExtendSelectionAndDelete(size_t before, size_t after); | 381 void ExtendSelectionAndDelete(size_t before, size_t after); |
379 | 382 |
380 // Notifies the RenderFrame that the JavaScript message that was shown was | 383 // Notifies the RenderFrame that the JavaScript message that was shown was |
381 // closed by the user. | 384 // closed by the user. |
382 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 385 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
383 bool success, | 386 bool success, |
384 const base::string16& user_input, | 387 const base::string16& user_input, |
385 bool dialog_was_suppressed); | 388 bool dialog_was_suppressed); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 | 783 |
781 // NOTE: This must be the last member. | 784 // NOTE: This must be the last member. |
782 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 785 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
783 | 786 |
784 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 787 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
785 }; | 788 }; |
786 | 789 |
787 } // namespace content | 790 } // namespace content |
788 | 791 |
789 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 792 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |