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

Side by Side Diff: content/shell/renderer/test_runner/web_test_proxy.h

Issue 284073002: Remove software paint path from WebTestProxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool RunFileChooser(const blink::WebFileChooserParams&, 97 bool RunFileChooser(const blink::WebFileChooserParams&,
98 blink::WebFileChooserCompletion*); 98 blink::WebFileChooserCompletion*);
99 void ShowValidationMessage(const blink::WebRect& anchorInRootView, 99 void ShowValidationMessage(const blink::WebRect& anchorInRootView,
100 const blink::WebString& mainText, 100 const blink::WebString& mainText,
101 const blink::WebString& supplementalText, 101 const blink::WebString& supplementalText,
102 blink::WebTextDirection); 102 blink::WebTextDirection);
103 void HideValidationMessage(); 103 void HideValidationMessage();
104 void MoveValidationMessage(const blink::WebRect& anchorInRootView); 104 void MoveValidationMessage(const blink::WebRect& anchorInRootView);
105 105
106 std::string CaptureTree(bool debugRenderTree); 106 std::string CaptureTree(bool debugRenderTree);
107 SkCanvas* CapturePixels();
108 void CapturePixelsForPrinting( 107 void CapturePixelsForPrinting(
109 const base::Callback<void(const SkBitmap&)>& callback); 108 const base::Callback<void(const SkBitmap&)>& callback);
110 void CapturePixelsAsync( 109 void CapturePixelsAsync(
111 const base::Callback<void(const SkBitmap&)>& callback); 110 const base::Callback<void(const SkBitmap&)>& callback);
112 111
113 void SetLogConsoleOutput(bool enabled); 112 void SetLogConsoleOutput(bool enabled);
114 113
115 // FIXME: Make this private again. 114 // FIXME: Make this private again.
116 void ScheduleComposite(); 115 void ScheduleComposite();
117 116
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFrame, 217 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFrame,
219 blink::WebFrame* targetFrame, 218 blink::WebFrame* targetFrame,
220 blink::WebSecurityOrigin target, 219 blink::WebSecurityOrigin target,
221 blink::WebDOMMessageEvent); 220 blink::WebDOMMessageEvent);
222 void ResetInputMethod(); 221 void ResetInputMethod();
223 222
224 private: 223 private:
225 template <class, typename, typename> 224 template <class, typename, typename>
226 friend class WebFrameTestProxy; 225 friend class WebFrameTestProxy;
227 void LocationChangeDone(blink::WebFrame*); 226 void LocationChangeDone(blink::WebFrame*);
228 void PaintRect(const blink::WebRect&);
229 void PaintInvalidatedRegion();
230 void PaintPagesWithBoundaries(); 227 void PaintPagesWithBoundaries();
231 SkCanvas* GetCanvas(); 228 SkCanvas* GetCanvas();
232 void InvalidateAll(); 229 void InvalidateAll();
233 void AnimateNow(); 230 void AnimateNow();
234 void DrawSelectionRect(SkCanvas* canvas); 231 void DrawSelectionRect(SkCanvas* canvas);
235 void DisplayForSoftwareMode(const base::Closure& callback);
236 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap); 232 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap);
237 233
238 blink::WebWidget* web_widget() const { return web_widget_; } 234 blink::WebWidget* web_widget() const { return web_widget_; }
239 235
240 TestInterfaces* test_interfaces_; 236 TestInterfaces* test_interfaces_;
241 WebTestDelegate* delegate_; 237 WebTestDelegate* delegate_;
242 blink::WebWidget* web_widget_; 238 blink::WebWidget* web_widget_;
243 239
244 WebTaskList task_list_; 240 WebTaskList task_list_;
245 241
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 WebTestProxyBase::PostSpellCheckEvent(eventName); 382 WebTestProxyBase::PostSpellCheckEvent(eventName);
387 } 383 }
388 384
389 private: 385 private:
390 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 386 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
391 }; 387 };
392 388
393 } // namespace content 389 } // namespace content
394 390
395 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 391 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698