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

Side by Side Diff: chrome/renderer/print_web_view_helper.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/common/render_messages_internal.h ('k') | chrome/renderer/render_view.h » ('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_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual void didChangeSelection(bool is_selection_empty) {} 159 virtual void didChangeSelection(bool is_selection_empty) {}
160 virtual void didChangeContents() {} 160 virtual void didChangeContents() {}
161 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} 161 virtual void didExecuteCommand(const WebKit::WebString& command_name) {}
162 virtual void didEndEditing() {} 162 virtual void didEndEditing() {}
163 virtual bool handleCurrentKeyboardEvent() { return false; } 163 virtual bool handleCurrentKeyboardEvent() { return false; }
164 virtual void spellCheck( 164 virtual void spellCheck(
165 const WebKit::WebString& text, int& offset, int& length) {} 165 const WebKit::WebString& text, int& offset, int& length) {}
166 virtual WebKit::WebString autoCorrectWord( 166 virtual WebKit::WebString autoCorrectWord(
167 const WebKit::WebString& misspelled_word); 167 const WebKit::WebString& misspelled_word);
168 virtual void showSpellingUI(bool show) {} 168 virtual void showSpellingUI(bool show) {}
169 virtual bool isShowingSpellingUI() { return false; }
169 virtual void updateSpellingUIWithMisspelledWord( 170 virtual void updateSpellingUIWithMisspelledWord(
170 const WebKit::WebString& word) {} 171 const WebKit::WebString& word) {}
171 virtual void runModalAlertDialog( 172 virtual void runModalAlertDialog(
172 WebKit::WebFrame* frame, const WebKit::WebString& message) {} 173 WebKit::WebFrame* frame, const WebKit::WebString& message) {}
173 virtual bool runModalConfirmDialog( 174 virtual bool runModalConfirmDialog(
174 WebKit::WebFrame* frame, const WebKit::WebString& message) { 175 WebKit::WebFrame* frame, const WebKit::WebString& message) {
175 return false; 176 return false;
176 } 177 }
177 virtual bool runModalPromptDialog( 178 virtual bool runModalPromptDialog(
178 WebKit::WebFrame* frame, const WebKit::WebString& message, 179 WebKit::WebFrame* frame, const WebKit::WebString& message,
(...skipping 10 matching lines...) Expand all
189 virtual void startDragging( 190 virtual void startDragging(
190 const WebKit::WebPoint& from, const WebKit::WebDragData& data, 191 const WebKit::WebPoint& from, const WebKit::WebDragData& data,
191 WebKit::WebDragOperationsMask mask) {} 192 WebKit::WebDragOperationsMask mask) {}
192 virtual bool acceptsLoadDrops() { return false; } 193 virtual bool acceptsLoadDrops() { return false; }
193 virtual void focusNext() {} 194 virtual void focusNext() {}
194 virtual void focusPrevious() {} 195 virtual void focusPrevious() {}
195 virtual void navigateBackForwardSoon(int offset) {} 196 virtual void navigateBackForwardSoon(int offset) {}
196 virtual int historyBackListCount() { return 0; } 197 virtual int historyBackListCount() { return 0; }
197 virtual int historyForwardListCount() { return 0; } 198 virtual int historyForwardListCount() { return 0; }
198 virtual void didAddHistoryItem() {} 199 virtual void didAddHistoryItem() {}
200 virtual void didUpdateInspectorSettings() {}
199 201
200 // WebKit::WebWidgetClient 202 // WebKit::WebWidgetClient
201 virtual void didInvalidateRect(const WebKit::WebRect&) {} 203 virtual void didInvalidateRect(const WebKit::WebRect&) {}
202 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect) {} 204 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect) {}
203 virtual void didFocus() {} 205 virtual void didFocus() {}
204 virtual void didBlur() {} 206 virtual void didBlur() {}
205 virtual void didChangeCursor(const WebKit::WebCursorInfo&) {} 207 virtual void didChangeCursor(const WebKit::WebCursorInfo&) {}
206 virtual void closeWidgetSoon() {} 208 virtual void closeWidgetSoon() {}
207 virtual void show(WebKit::WebNavigationPolicy) {} 209 virtual void show(WebKit::WebNavigationPolicy) {}
208 virtual void runModal() {} 210 virtual void runModal() {}
209 virtual WebKit::WebRect windowRect(); 211 virtual WebKit::WebRect windowRect();
210 virtual void setWindowRect(const WebKit::WebRect&) {} 212 virtual void setWindowRect(const WebKit::WebRect&) {}
211 virtual WebKit::WebRect windowResizerRect(); 213 virtual WebKit::WebRect windowResizerRect();
212 virtual WebKit::WebRect rootWindowRect(); 214 virtual WebKit::WebRect rootWindowRect();
213 virtual WebKit::WebScreenInfo screenInfo(); 215 virtual WebKit::WebScreenInfo screenInfo();
214 216
215 private: 217 private:
216 RenderView* render_view_; 218 RenderView* render_view_;
217 scoped_ptr<WebView> print_web_view_; 219 scoped_ptr<WebView> print_web_view_;
218 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; 220 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_;
219 base::Time last_cancelled_script_print_; 221 base::Time last_cancelled_script_print_;
220 int user_cancelled_scripted_print_count_; 222 int user_cancelled_scripted_print_count_;
221 223
222 private: 224 private:
223 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 225 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
224 }; 226 };
225 227
226 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 228 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698