Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 408 | 408 |
| 409 // Update the frame's opener in the renderer process in response to the | 409 // Update the frame's opener in the renderer process in response to the |
| 410 // opener being modified (e.g., with window.open or being set to null) in | 410 // opener being modified (e.g., with window.open or being set to null) in |
| 411 // another renderer process. | 411 // another renderer process. |
| 412 void UpdateOpener(); | 412 void UpdateOpener(); |
| 413 | 413 |
| 414 // Set this frame as focused in the renderer process. This supports | 414 // Set this frame as focused in the renderer process. This supports |
| 415 // cross-process window.focus() calls. | 415 // cross-process window.focus() calls. |
| 416 void SetFocusedFrame(); | 416 void SetFocusedFrame(); |
| 417 | 417 |
| 418 // Unset this frame as focused in the renderer process. This allows loss of | |
| 419 // focus inside a <webview> when focus in the embedder goes from the webview | |
|
lfg
2016/05/06 21:23:33
Let's use inner WebContents instead of <webview>,
avallee
2016/05/11 18:26:11
Sure, done. I did see mentions of <webview> furthe
| |
| 420 // to another element. | |
| 421 void UnsetFocusedFrame(); | |
| 422 | |
| 418 // Deletes the current selection plus the specified number of characters | 423 // Deletes the current selection plus the specified number of characters |
| 419 // before and after the selection or caret. | 424 // before and after the selection or caret. |
| 420 void ExtendSelectionAndDelete(size_t before, size_t after); | 425 void ExtendSelectionAndDelete(size_t before, size_t after); |
| 421 | 426 |
| 422 // Notifies the RenderFrame that the JavaScript message that was shown was | 427 // Notifies the RenderFrame that the JavaScript message that was shown was |
| 423 // closed by the user. | 428 // closed by the user. |
| 424 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 429 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
| 425 bool success, | 430 bool success, |
| 426 const base::string16& user_input, | 431 const base::string16& user_input, |
| 427 bool dialog_was_suppressed); | 432 bool dialog_was_suppressed); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 969 | 974 |
| 970 // NOTE: This must be the last member. | 975 // NOTE: This must be the last member. |
| 971 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 976 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 972 | 977 |
| 973 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 978 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 974 }; | 979 }; |
| 975 | 980 |
| 976 } // namespace content | 981 } // namespace content |
| 977 | 982 |
| 978 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 983 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |