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

Side by Side Diff: chrome/renderer/render_view.h

Issue 246079: More WebView / WebViewDelegate cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/render_view.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <queue> 10 #include <queue>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const GURL& link_url, 185 const GURL& link_url,
186 const GURL& src_url, 186 const GURL& src_url,
187 const GURL& page_url, 187 const GURL& page_url,
188 const GURL& frame_url, 188 const GURL& frame_url,
189 const ContextMenuMediaParams& media_params, 189 const ContextMenuMediaParams& media_params,
190 const std::wstring& selection_text, 190 const std::wstring& selection_text,
191 const std::wstring& misspelled_word, 191 const std::wstring& misspelled_word,
192 int edit_flags, 192 int edit_flags,
193 const std::string& security_info, 193 const std::string& security_info,
194 const std::string& frame_charset); 194 const std::string& frame_charset);
195 virtual void UpdateInspectorSettings(const std::wstring& raw_settings);
196 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); 195 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate();
197 virtual void ReportFindInPageMatchCount(int count, int request_id,
198 bool final_update);
199 virtual void ReportFindInPageSelection(int request_id,
200 int active_match_ordinal,
201 const WebKit::WebRect& selection);
202 virtual bool WasOpenedByUserGesture() const; 196 virtual bool WasOpenedByUserGesture() const;
203 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); 197 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj);
204 virtual void UserMetricsRecordAction(const std::wstring& action); 198 virtual void UserMetricsRecordAction(const std::wstring& action);
205 virtual void DnsPrefetch(const std::vector<std::string>& host_names); 199 virtual void DnsPrefetch(const std::vector<std::string>& host_names);
206 200
207 // WebKit::WebViewClient 201 // WebKit::WebViewClient
208 virtual WebView* createView(WebKit::WebFrame* creator); 202 virtual WebView* createView(WebKit::WebFrame* creator);
209 virtual WebKit::WebWidget* createPopupMenu(bool activatable); 203 virtual WebKit::WebWidget* createPopupMenu(bool activatable);
210 virtual WebKit::WebWidget* createPopupMenu( 204 virtual WebKit::WebWidget* createPopupMenu(
211 const WebKit::WebPopupMenuInfo& info); 205 const WebKit::WebPopupMenuInfo& info);
(...skipping 27 matching lines...) Expand all
239 virtual void didChangeSelection(bool is_selection_empty); 233 virtual void didChangeSelection(bool is_selection_empty);
240 virtual void didChangeContents() {} 234 virtual void didChangeContents() {}
241 virtual void didExecuteCommand(const WebKit::WebString& command_name); 235 virtual void didExecuteCommand(const WebKit::WebString& command_name);
242 virtual void didEndEditing() {} 236 virtual void didEndEditing() {}
243 virtual bool handleCurrentKeyboardEvent(); 237 virtual bool handleCurrentKeyboardEvent();
244 virtual void spellCheck( 238 virtual void spellCheck(
245 const WebKit::WebString& text, int& offset, int& length); 239 const WebKit::WebString& text, int& offset, int& length);
246 virtual WebKit::WebString autoCorrectWord( 240 virtual WebKit::WebString autoCorrectWord(
247 const WebKit::WebString& misspelled_word); 241 const WebKit::WebString& misspelled_word);
248 virtual void showSpellingUI(bool show); 242 virtual void showSpellingUI(bool show);
243 virtual bool isShowingSpellingUI();
249 virtual void updateSpellingUIWithMisspelledWord( 244 virtual void updateSpellingUIWithMisspelledWord(
250 const WebKit::WebString& word); 245 const WebKit::WebString& word);
251 virtual void runModalAlertDialog( 246 virtual void runModalAlertDialog(
252 WebKit::WebFrame* frame, const WebKit::WebString& message); 247 WebKit::WebFrame* frame, const WebKit::WebString& message);
253 virtual bool runModalConfirmDialog( 248 virtual bool runModalConfirmDialog(
254 WebKit::WebFrame* frame, const WebKit::WebString& message); 249 WebKit::WebFrame* frame, const WebKit::WebString& message);
255 virtual bool runModalPromptDialog( 250 virtual bool runModalPromptDialog(
256 WebKit::WebFrame* frame, const WebKit::WebString& message, 251 WebKit::WebFrame* frame, const WebKit::WebString& message,
257 const WebKit::WebString& default_value, WebKit::WebString* actual_value); 252 const WebKit::WebString& default_value, WebKit::WebString* actual_value);
258 virtual bool runModalBeforeUnloadDialog( 253 virtual bool runModalBeforeUnloadDialog(
259 WebKit::WebFrame* frame, const WebKit::WebString& message); 254 WebKit::WebFrame* frame, const WebKit::WebString& message);
260 virtual void setStatusText(const WebKit::WebString& text); 255 virtual void setStatusText(const WebKit::WebString& text);
261 virtual void setMouseOverURL(const WebKit::WebURL& url); 256 virtual void setMouseOverURL(const WebKit::WebURL& url);
262 virtual void setToolTipText( 257 virtual void setToolTipText(
263 const WebKit::WebString& text, WebKit::WebTextDirection hint); 258 const WebKit::WebString& text, WebKit::WebTextDirection hint);
264 virtual void startDragging( 259 virtual void startDragging(
265 const WebKit::WebPoint& from, const WebKit::WebDragData& data, 260 const WebKit::WebPoint& from, const WebKit::WebDragData& data,
266 WebKit::WebDragOperationsMask mask); 261 WebKit::WebDragOperationsMask mask);
267 virtual bool acceptsLoadDrops(); 262 virtual bool acceptsLoadDrops();
268 virtual void focusNext(); 263 virtual void focusNext();
269 virtual void focusPrevious(); 264 virtual void focusPrevious();
270 virtual void navigateBackForwardSoon(int offset); 265 virtual void navigateBackForwardSoon(int offset);
271 virtual int historyBackListCount(); 266 virtual int historyBackListCount();
272 virtual int historyForwardListCount(); 267 virtual int historyForwardListCount();
273 virtual void didAddHistoryItem(); 268 virtual void didAddHistoryItem();
269 virtual void didUpdateInspectorSettings();
274 270
275 // WebKit::WebWidgetClient 271 // WebKit::WebWidgetClient
276 // Most methods are handled by RenderWidget. 272 // Most methods are handled by RenderWidget.
277 virtual void show(WebKit::WebNavigationPolicy policy); 273 virtual void show(WebKit::WebNavigationPolicy policy);
278 virtual void closeWidgetSoon(); 274 virtual void closeWidgetSoon();
279 virtual void runModal(); 275 virtual void runModal();
280 276
281 // WebKit::WebFrameClient 277 // WebKit::WebFrameClient
282 virtual WebKit::WebPlugin* createPlugin( 278 virtual WebKit::WebPlugin* createPlugin(
283 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params); 279 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 const WebKit::WebURLError& error); 338 const WebKit::WebURLError& error);
343 virtual void didLoadResourceFromMemoryCache( 339 virtual void didLoadResourceFromMemoryCache(
344 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, 340 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request,
345 const WebKit::WebURLResponse&); 341 const WebKit::WebURLResponse&);
346 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); 342 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
347 virtual void didRunInsecureContent( 343 virtual void didRunInsecureContent(
348 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); 344 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin);
349 virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame* frame); 345 virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame* frame);
350 virtual void didChangeContentsSize( 346 virtual void didChangeContentsSize(
351 WebKit::WebFrame* frame, const WebKit::WebSize& size); 347 WebKit::WebFrame* frame, const WebKit::WebSize& size);
348 virtual void reportFindInPageMatchCount(
349 int request_id, int count, bool final_update);
350 virtual void reportFindInPageSelection(
351 int request_id, int active_match_ordinal, const WebKit::WebRect& sel);
352 352
353 // webkit_glue::WebPluginPageDelegate 353 // webkit_glue::WebPluginPageDelegate
354 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 354 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate(
355 const GURL& url, 355 const GURL& url,
356 const std::string& mime_type, 356 const std::string& mime_type,
357 std::string* actual_mime_type); 357 std::string* actual_mime_type);
358 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle); 358 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle);
359 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); 359 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle);
360 virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move); 360 virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move);
361 virtual void DidStartLoadingForPlugin(); 361 virtual void DidStartLoadingForPlugin();
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 871
872 // We need to prevent windows from closing themselves with a window.close() 872 // We need to prevent windows from closing themselves with a window.close()
873 // call while a blocked popup notification is being displayed. We cannot 873 // call while a blocked popup notification is being displayed. We cannot
874 // synchronously query the Browser process. We cannot wait for the Browser 874 // synchronously query the Browser process. We cannot wait for the Browser
875 // process to send a message to us saying that a blocked popup notification 875 // process to send a message to us saying that a blocked popup notification
876 // is being displayed. We instead assume that when we create a window off 876 // is being displayed. We instead assume that when we create a window off
877 // this RenderView, that it is going to be blocked until we get a message 877 // this RenderView, that it is going to be blocked until we get a message
878 // from the Browser process telling us otherwise. 878 // from the Browser process telling us otherwise.
879 bool popup_notification_visible_; 879 bool popup_notification_visible_;
880 880
881 // True if the browser is showing the spelling panel for us.
882 bool spelling_panel_visible_;
883
881 // Time in seconds of the delay between syncing page state such as form 884 // Time in seconds of the delay between syncing page state such as form
882 // elements and scroll position. This timeout allows us to avoid spamming the 885 // elements and scroll position. This timeout allows us to avoid spamming the
883 // browser process with every little thing that changes. This normally doesn't 886 // browser process with every little thing that changes. This normally doesn't
884 // change but is overridden by tests. 887 // change but is overridden by tests.
885 int delay_seconds_for_form_state_sync_; 888 int delay_seconds_for_form_state_sync_;
886 889
887 scoped_refptr<AudioMessageFilter> audio_message_filter_; 890 scoped_refptr<AudioMessageFilter> audio_message_filter_;
888 891
889 // The currently selected text. This is currently only updated on Linux, where 892 // The currently selected text. This is currently only updated on Linux, where
890 // it's for the selection clipboard. 893 // it's for the selection clipboard.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 970
968 // ImageResourceFetchers schedule via DownloadImage. 971 // ImageResourceFetchers schedule via DownloadImage.
969 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; 972 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet;
970 ImageResourceFetcherSet image_fetchers_; 973 ImageResourceFetcherSet image_fetchers_;
971 974
972 975
973 DISALLOW_COPY_AND_ASSIGN(RenderView); 976 DISALLOW_COPY_AND_ASSIGN(RenderView);
974 }; 977 };
975 978
976 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 979 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698