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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 1407173005: Revert of OOPIF: Route keyboard events to focused frame in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-page
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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Requests the renderer to select the region between two points in the 92 // Requests the renderer to select the region between two points in the
93 // currently focused frame. 93 // currently focused frame.
94 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} 94 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {}
95 95
96 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); 96 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter();
97 97
98 // Send page-level focus state to all SiteInstances involved in rendering the 98 // Send page-level focus state to all SiteInstances involved in rendering the
99 // current FrameTree, not including the main frame's SiteInstance. 99 // current FrameTree, not including the main frame's SiteInstance.
100 virtual void ReplicatePageFocus(bool is_focused) {} 100 virtual void ReplicatePageFocus(bool is_focused) {}
101 101
102 // Get the RenderWidgetHost of the currently focused frame. With
103 // out-of-process iframes, multiple RenderWidgetHosts may be involved in
104 // rendering a page, and this function determines which RenderWidgetHost
105 // should consume a keyboard input event.
106 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost();
107
108 #if defined(OS_WIN) 102 #if defined(OS_WIN)
109 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 103 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
110 #endif 104 #endif
111 105
112 protected: 106 protected:
113 virtual ~RenderWidgetHostDelegate() {} 107 virtual ~RenderWidgetHostDelegate() {}
114 }; 108 };
115 109
116 } // namespace content 110 } // namespace content
117 111
118 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 112 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698