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

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

Issue 2474323002: Implement WebContentsViewChildFrame::TakeFocus. (Closed)
Patch Set: Fix cases where focus does not actually advance focus Created 4 years 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 22 matching lines...) Expand all
33 #include "content/common/frame_message_enums.h" 33 #include "content/common/frame_message_enums.h"
34 #include "content/common/frame_replication_state.h" 34 #include "content/common/frame_replication_state.h"
35 #include "content/common/image_downloader/image_downloader.mojom.h" 35 #include "content/common/image_downloader/image_downloader.mojom.h"
36 #include "content/common/navigation_params.h" 36 #include "content/common/navigation_params.h"
37 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/common/javascript_message_type.h" 38 #include "content/public/common/javascript_message_type.h"
39 #include "media/mojo/interfaces/interface_factory.mojom.h" 39 #include "media/mojo/interfaces/interface_factory.mojom.h"
40 #include "net/http/http_response_headers.h" 40 #include "net/http/http_response_headers.h"
41 #include "services/service_manager/public/cpp/interface_factory.h" 41 #include "services/service_manager/public/cpp/interface_factory.h"
42 #include "services/service_manager/public/cpp/interface_registry.h" 42 #include "services/service_manager/public/cpp/interface_registry.h"
43 #include "third_party/WebKit/public/platform/WebFocusType.h"
43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 44 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
44 #include "third_party/WebKit/public/web/WebTextDirection.h" 45 #include "third_party/WebKit/public/web/WebTextDirection.h"
45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 46 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
46 #include "ui/accessibility/ax_node_data.h" 47 #include "ui/accessibility/ax_node_data.h"
47 #include "ui/base/page_transition_types.h" 48 #include "ui/base/page_transition_types.h"
48 49
49 class GURL; 50 class GURL;
50 struct AccessibilityHostMsg_EventParams; 51 struct AccessibilityHostMsg_EventParams;
51 struct AccessibilityHostMsg_FindInPageResultParams; 52 struct AccessibilityHostMsg_FindInPageResultParams;
52 struct AccessibilityHostMsg_LocationChangeParams; 53 struct AccessibilityHostMsg_LocationChangeParams;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 421
421 // Update the frame's opener in the renderer process in response to the 422 // Update the frame's opener in the renderer process in response to the
422 // opener being modified (e.g., with window.open or being set to null) in 423 // opener being modified (e.g., with window.open or being set to null) in
423 // another renderer process. 424 // another renderer process.
424 void UpdateOpener(); 425 void UpdateOpener();
425 426
426 // Set this frame as focused in the renderer process. This supports 427 // Set this frame as focused in the renderer process. This supports
427 // cross-process window.focus() calls. 428 // cross-process window.focus() calls.
428 void SetFocusedFrame(); 429 void SetFocusedFrame();
429 430
431 // Continues sequential focus navigation in this frame. |source_proxy|
432 // represents the frame that requested a focus change. It must be in the same
433 // process as this or |nullptr|.
434 void AdvanceFocus(blink::WebFocusType type,
435 RenderFrameProxyHost* source_proxy);
436
430 // Deletes the current selection plus the specified number of characters 437 // Deletes the current selection plus the specified number of characters
431 // before and after the selection or caret. 438 // before and after the selection or caret.
432 void ExtendSelectionAndDelete(size_t before, size_t after); 439 void ExtendSelectionAndDelete(size_t before, size_t after);
433 440
434 // Deletes text before and after the current cursor position, excluding the 441 // Deletes text before and after the current cursor position, excluding the
435 // selection. 442 // selection.
436 void DeleteSurroundingText(size_t before, size_t after); 443 void DeleteSurroundingText(size_t before, size_t after);
437 444
438 // Notifies the RenderFrame that the JavaScript message that was shown was 445 // Notifies the RenderFrame that the JavaScript message that was shown was
439 // closed by the user. 446 // closed by the user.
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 remote_associated_interfaces_; 1078 remote_associated_interfaces_;
1072 // NOTE: This must be the last member. 1079 // NOTE: This must be the last member.
1073 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1080 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1074 1081
1075 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1082 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1076 }; 1083 };
1077 1084
1078 } // namespace content 1085 } // namespace content
1079 1086
1080 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1087 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | content/browser/web_contents/web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698