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

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

Issue 2641403002: [refactor] - Move IsFocusedElementEditable() and ClearFocusedElement() from RenderViewHost to WebCo… (Closed)
Patch Set: Addressed sky@'s comment Created 3 years, 10 months 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 (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_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Whether the user agent is overridden using the Chrome for Android "Request 184 // Whether the user agent is overridden using the Chrome for Android "Request
185 // Desktop Site" feature. 185 // Desktop Site" feature.
186 virtual bool IsOverridingUserAgent(); 186 virtual bool IsOverridingUserAgent();
187 187
188 virtual bool IsJavaScriptDialogShowing() const; 188 virtual bool IsJavaScriptDialogShowing() const;
189 189
190 // Whether download UI should be hidden. 190 // Whether download UI should be hidden.
191 virtual bool HideDownloadUI() const; 191 virtual bool HideDownloadUI() const;
192 192
193 // Whether the focused element on the page is editable. This returns true iff
194 // the focused frame has a focused editable element.
195 virtual bool IsFocusedElementEditable();
196
197 // Asks the delegate to clear the focused element. This will lead to an IPC to
198 // the focused RenderWidget.
199 virtual void ClearFocusedElement() {}
200
201 protected: 193 protected:
202 virtual ~RenderViewHostDelegate() {} 194 virtual ~RenderViewHostDelegate() {}
203 }; 195 };
204 196
205 } // namespace content 197 } // namespace content
206 198
207 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 199 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698