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

Side by Side Diff: public/testing/WebTestProxy.h

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 years, 3 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
« no previous file with comments | « Source/web/WebAccessibilityObject.cpp ('k') | public/web/WebAXEnums.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebTestProxy_h 31 #ifndef WebTestProxy_h
32 #define WebTestProxy_h 32 #define WebTestProxy_h
33 33
34 #include "WebTask.h" 34 #include "WebTask.h"
35 #include "WebTestCommon.h" 35 #include "WebTestCommon.h"
36 #include "public/platform/WebRect.h" 36 #include "public/platform/WebRect.h"
37 #include "public/platform/WebURLError.h" 37 #include "public/platform/WebURLError.h"
38 #include "public/platform/WebURLRequest.h" 38 #include "public/platform/WebURLRequest.h"
39 #include "public/web/WebAXEnums.h"
39 #include "public/web/WebAccessibilityNotification.h" 40 #include "public/web/WebAccessibilityNotification.h"
40 #include "public/web/WebDOMMessageEvent.h" 41 #include "public/web/WebDOMMessageEvent.h"
41 #include "public/web/WebDataSource.h" 42 #include "public/web/WebDataSource.h"
42 #include "public/web/WebDragOperation.h" 43 #include "public/web/WebDragOperation.h"
43 #include "public/web/WebEditingAction.h" 44 #include "public/web/WebEditingAction.h"
44 #include "public/web/WebIconURL.h" 45 #include "public/web/WebIconURL.h"
45 #include "public/web/WebNavigationPolicy.h" 46 #include "public/web/WebNavigationPolicy.h"
46 #include "public/web/WebNavigationType.h" 47 #include "public/web/WebNavigationType.h"
47 #include "public/web/WebSecurityOrigin.h" 48 #include "public/web/WebSecurityOrigin.h"
48 #include "public/web/WebTextAffinity.h" 49 #include "public/web/WebTextAffinity.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 protected: 152 protected:
152 WebTestProxyBase(); 153 WebTestProxyBase();
153 ~WebTestProxyBase(); 154 ~WebTestProxyBase();
154 155
155 void didInvalidateRect(const WebKit::WebRect&); 156 void didInvalidateRect(const WebKit::WebRect&);
156 void didScrollRect(int, int, const WebKit::WebRect&); 157 void didScrollRect(int, int, const WebKit::WebRect&);
157 void scheduleAnimation(); 158 void scheduleAnimation();
158 void setWindowRect(const WebKit::WebRect&); 159 void setWindowRect(const WebKit::WebRect&);
159 void show(WebKit::WebNavigationPolicy); 160 void show(WebKit::WebNavigationPolicy);
160 void didAutoResize(const WebKit::WebSize&); 161 void didAutoResize(const WebKit::WebSize&);
161 void postAccessibilityNotification(const WebKit::WebAccessibilityObject&, We bKit::WebAccessibilityNotification); 162 void postAccessibilityEvent(const WebKit::WebAccessibilityObject&, WebKit::W ebAXEvent);
162 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&); 163 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&);
163 bool shouldBeginEditing(const WebKit::WebRange&); 164 bool shouldBeginEditing(const WebKit::WebRange&);
164 bool shouldEndEditing(const WebKit::WebRange&); 165 bool shouldEndEditing(const WebKit::WebRange&);
165 bool shouldInsertNode(const WebKit::WebNode&, const WebKit::WebRange&, WebKi t::WebEditingAction); 166 bool shouldInsertNode(const WebKit::WebNode&, const WebKit::WebRange&, WebKi t::WebEditingAction);
166 bool shouldInsertText(const WebKit::WebString& text, const WebKit::WebRange& , WebKit::WebEditingAction); 167 bool shouldInsertText(const WebKit::WebString& text, const WebKit::WebRange& , WebKit::WebEditingAction);
167 bool shouldChangeSelectedRange(const WebKit::WebRange& fromRange, const WebK it::WebRange& toRange, WebKit::WebTextAffinity, bool stillSelecting); 168 bool shouldChangeSelectedRange(const WebKit::WebRange& fromRange, const WebK it::WebRange& toRange, WebKit::WebTextAffinity, bool stillSelecting);
168 bool shouldDeleteRange(const WebKit::WebRange&); 169 bool shouldDeleteRange(const WebKit::WebRange&);
169 bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::WebRange &); 170 bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::WebRange &);
170 void didBeginEditing(); 171 void didBeginEditing();
171 void didChangeSelection(bool isEmptySelection); 172 void didChangeSelection(bool isEmptySelection);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 virtual void show(WebKit::WebNavigationPolicy policy) 302 virtual void show(WebKit::WebNavigationPolicy policy)
302 { 303 {
303 WebTestProxyBase::show(policy); 304 WebTestProxyBase::show(policy);
304 Base::show(policy); 305 Base::show(policy);
305 } 306 }
306 virtual void didAutoResize(const WebKit::WebSize& newSize) 307 virtual void didAutoResize(const WebKit::WebSize& newSize)
307 { 308 {
308 WebTestProxyBase::didAutoResize(newSize); 309 WebTestProxyBase::didAutoResize(newSize);
309 Base::didAutoResize(newSize); 310 Base::didAutoResize(newSize);
310 } 311 }
311 virtual void postAccessibilityNotification(const WebKit::WebAccessibilityObj ect& object, WebKit::WebAccessibilityNotification notification) 312 virtual void postAccessibilityEvent(const WebKit::WebAccessibilityObject& ob ject, WebKit::WebAXEvent event)
312 { 313 {
313 WebTestProxyBase::postAccessibilityNotification(object, notification); 314 WebTestProxyBase::postAccessibilityEvent(object, event);
314 Base::postAccessibilityNotification(object, notification); 315 Base::postAccessibilityEvent(object, event);
315 } 316 }
316 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons t WebKit::WebPoint& point) 317 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons t WebKit::WebPoint& point)
317 { 318 {
318 WebTestProxyBase::startDragging(frame, data, mask, image, point); 319 WebTestProxyBase::startDragging(frame, data, mask, image, point);
319 // Don't forward this call to Base because we don't want to do a real dr ag-and-drop. 320 // Don't forward this call to Base because we don't want to do a real dr ag-and-drop.
320 } 321 }
321 virtual bool shouldBeginEditing(const WebKit::WebRange& range) 322 virtual bool shouldBeginEditing(const WebKit::WebRange& range)
322 { 323 {
323 WebTestProxyBase::shouldBeginEditing(range); 324 WebTestProxyBase::shouldBeginEditing(range);
324 return Base::shouldBeginEditing(range); 325 return Base::shouldBeginEditing(range);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 } 586 }
586 virtual WebKit::WebColorChooser* createColorChooser(WebKit::WebColorChooserC lient* client, const WebKit::WebColor& color) 587 virtual WebKit::WebColorChooser* createColorChooser(WebKit::WebColorChooserC lient* client, const WebKit::WebColor& color)
587 { 588 {
588 return WebTestProxyBase::createColorChooser(client, color); 589 return WebTestProxyBase::createColorChooser(client, color);
589 } 590 }
590 }; 591 };
591 592
592 } 593 }
593 594
594 #endif // WebTestProxy_h 595 #endif // WebTestProxy_h
OLDNEW
« no previous file with comments | « Source/web/WebAccessibilityObject.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698