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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.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 | « webkit/glue/webview_impl.cc ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // TestWebViewDelegate class: 5 // TestWebViewDelegate class:
6 // This class implements the WebViewDelegate methods for the test shell. One 6 // This class implements the WebViewDelegate methods for the test shell. One
7 // instance is owned by each TestShell. 7 // instance is owned by each TestShell.
8 8
9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual void didChangeSelection(bool is_selection_empty); 116 virtual void didChangeSelection(bool is_selection_empty);
117 virtual void didChangeContents(); 117 virtual void didChangeContents();
118 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} 118 virtual void didExecuteCommand(const WebKit::WebString& command_name) {}
119 virtual void didEndEditing(); 119 virtual void didEndEditing();
120 virtual bool handleCurrentKeyboardEvent() { return false; } 120 virtual bool handleCurrentKeyboardEvent() { return false; }
121 virtual void spellCheck( 121 virtual void spellCheck(
122 const WebKit::WebString& text, int& offset, int& length) {} 122 const WebKit::WebString& text, int& offset, int& length) {}
123 virtual WebKit::WebString autoCorrectWord( 123 virtual WebKit::WebString autoCorrectWord(
124 const WebKit::WebString& misspelled_word); 124 const WebKit::WebString& misspelled_word);
125 virtual void showSpellingUI(bool show) {} 125 virtual void showSpellingUI(bool show) {}
126 virtual bool isShowingSpellingUI() { return false; }
126 virtual void updateSpellingUIWithMisspelledWord( 127 virtual void updateSpellingUIWithMisspelledWord(
127 const WebKit::WebString& word) {} 128 const WebKit::WebString& word) {}
128 virtual void runModalAlertDialog( 129 virtual void runModalAlertDialog(
129 WebKit::WebFrame* frame, const WebKit::WebString& message); 130 WebKit::WebFrame* frame, const WebKit::WebString& message);
130 virtual bool runModalConfirmDialog( 131 virtual bool runModalConfirmDialog(
131 WebKit::WebFrame* frame, const WebKit::WebString& message); 132 WebKit::WebFrame* frame, const WebKit::WebString& message);
132 virtual bool runModalPromptDialog( 133 virtual bool runModalPromptDialog(
133 WebKit::WebFrame* frame, const WebKit::WebString& message, 134 WebKit::WebFrame* frame, const WebKit::WebString& message,
134 const WebKit::WebString& default_value, WebKit::WebString* actual_value); 135 const WebKit::WebString& default_value, WebKit::WebString* actual_value);
135 virtual bool runModalBeforeUnloadDialog( 136 virtual bool runModalBeforeUnloadDialog(
136 WebKit::WebFrame* frame, const WebKit::WebString& message); 137 WebKit::WebFrame* frame, const WebKit::WebString& message);
137 virtual void setStatusText(const WebKit::WebString& text); 138 virtual void setStatusText(const WebKit::WebString& text);
138 virtual void setMouseOverURL(const WebKit::WebURL& url) {} 139 virtual void setMouseOverURL(const WebKit::WebURL& url) {}
139 virtual void setToolTipText( 140 virtual void setToolTipText(
140 const WebKit::WebString& text, WebKit::WebTextDirection hint) {} 141 const WebKit::WebString& text, WebKit::WebTextDirection hint) {}
141 virtual void startDragging( 142 virtual void startDragging(
142 const WebKit::WebPoint& from, const WebKit::WebDragData& data, 143 const WebKit::WebPoint& from, const WebKit::WebDragData& data,
143 WebKit::WebDragOperationsMask mask); 144 WebKit::WebDragOperationsMask mask);
144 virtual bool acceptsLoadDrops() { return true; } 145 virtual bool acceptsLoadDrops() { return true; }
145 virtual void focusNext() {} 146 virtual void focusNext() {}
146 virtual void focusPrevious() {} 147 virtual void focusPrevious() {}
147 virtual void navigateBackForwardSoon(int offset); 148 virtual void navigateBackForwardSoon(int offset);
148 virtual int historyBackListCount(); 149 virtual int historyBackListCount();
149 virtual int historyForwardListCount(); 150 virtual int historyForwardListCount();
150 virtual void didAddHistoryItem() {} 151 virtual void didAddHistoryItem() {}
152 virtual void didUpdateInspectorSettings() {}
151 153
152 // WebKit::WebWidgetClient 154 // WebKit::WebWidgetClient
153 virtual void didInvalidateRect(const WebKit::WebRect& rect); 155 virtual void didInvalidateRect(const WebKit::WebRect& rect);
154 virtual void didScrollRect(int dx, int dy, 156 virtual void didScrollRect(int dx, int dy,
155 const WebKit::WebRect& clip_rect); 157 const WebKit::WebRect& clip_rect);
156 virtual void didFocus(); 158 virtual void didFocus();
157 virtual void didBlur(); 159 virtual void didBlur();
158 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); 160 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor);
159 virtual void closeWidgetSoon(); 161 virtual void closeWidgetSoon();
160 virtual void show(WebKit::WebNavigationPolicy policy); 162 virtual void show(WebKit::WebNavigationPolicy policy);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); 225 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&);
224 virtual void didLoadResourceFromMemoryCache( 226 virtual void didLoadResourceFromMemoryCache(
225 WebKit::WebFrame*, const WebKit::WebURLRequest&, 227 WebKit::WebFrame*, const WebKit::WebURLRequest&,
226 const WebKit::WebURLResponse&) {} 228 const WebKit::WebURLResponse&) {}
227 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); 229 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
228 virtual void didRunInsecureContent( 230 virtual void didRunInsecureContent(
229 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); 231 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin);
230 virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame*) {} 232 virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame*) {}
231 virtual void didChangeContentsSize( 233 virtual void didChangeContentsSize(
232 WebKit::WebFrame*, const WebKit::WebSize&) {} 234 WebKit::WebFrame*, const WebKit::WebSize&) {}
235 virtual void reportFindInPageMatchCount(
236 int identifier, int count, bool final_update) {}
237 virtual void reportFindInPageSelection(
238 int identifier, int ordinal, const WebKit::WebRect& selection) {}
233 239
234 // webkit_glue::WebPluginPageDelegate 240 // webkit_glue::WebPluginPageDelegate
235 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 241 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate(
236 const GURL& url, 242 const GURL& url,
237 const std::string& mime_type, 243 const std::string& mime_type,
238 std::string* actual_mime_type); 244 std::string* actual_mime_type);
239 virtual void CreatedPluginWindow( 245 virtual void CreatedPluginWindow(
240 gfx::PluginWindowHandle handle); 246 gfx::PluginWindowHandle handle);
241 virtual void WillDestroyPluginWindow( 247 virtual void WillDestroyPluginWindow(
242 gfx::PluginWindowHandle handle); 248 gfx::PluginWindowHandle handle);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // true if we want to enable selection of trailing whitespaces 404 // true if we want to enable selection of trailing whitespaces
399 bool select_trailing_whitespace_enabled_; 405 bool select_trailing_whitespace_enabled_;
400 406
401 // true if we should block any redirects 407 // true if we should block any redirects
402 bool block_redirects_; 408 bool block_redirects_;
403 409
404 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 410 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
405 }; 411 };
406 412
407 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 413 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698