OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebView_h | 31 #ifndef WebView_h |
32 #define WebView_h | 32 #define WebView_h |
33 | 33 |
34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
36 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
37 #include "WebDragOperation.h" | 37 #include "WebDragOperation.h" |
| 38 #include "WebHistoryCommitType.h" |
| 39 #include "WebHistoryItem.h" |
38 #include "WebPageVisibilityState.h" | 40 #include "WebPageVisibilityState.h" |
39 #include "WebWidget.h" | 41 #include "WebWidget.h" |
40 | 42 |
41 namespace blink { | 43 namespace blink { |
42 | 44 |
43 class WebAXObject; | 45 class WebAXObject; |
44 class WebAutofillClient; | 46 class WebAutofillClient; |
45 class WebDevToolsAgent; | 47 class WebDevToolsAgent; |
46 class WebDevToolsAgentClient; | 48 class WebDevToolsAgentClient; |
47 class WebDragData; | 49 class WebDragData; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // graphical appearance of the WebView. WebPageOverlay paints the | 489 // graphical appearance of the WebView. WebPageOverlay paints the |
488 // contents of the page overlay. It also provides an z-order number for | 490 // contents of the page overlay. It also provides an z-order number for |
489 // the page overlay. The z-order number defines the paint order the page | 491 // the page overlay. The z-order number defines the paint order the page |
490 // overlays. Page overlays with larger z-order number will be painted after | 492 // overlays. Page overlays with larger z-order number will be painted after |
491 // page overlays with smaller z-order number. That is, they appear above | 493 // page overlays with smaller z-order number. That is, they appear above |
492 // the page overlays with smaller z-order number. If two page overlays have | 494 // the page overlays with smaller z-order number. If two page overlays have |
493 // the same z-order number, the later added one will be on top. | 495 // the same z-order number, the later added one will be on top. |
494 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; | 496 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; |
495 virtual void removePageOverlay(WebPageOverlay*) = 0; | 497 virtual void removePageOverlay(WebPageOverlay*) = 0; |
496 | 498 |
| 499 |
| 500 // History (TEMPORARY) -------------------------------------------------- |
| 501 // These are shims to enable blink's HistoryController to move to content/. |
| 502 virtual void updateForCommit(WebFrame*, const WebHistoryItem&, WebHistoryCom
mitType, bool navigationWithinPage) { } |
| 503 virtual WebHistoryItem itemForNewChildFrame(WebFrame*) const { return WebHis
toryItem(); } |
| 504 virtual void removeChildrenForRedirect(WebFrame*) { } |
| 505 |
| 506 |
497 // Testing functionality for TestRunner --------------------------------- | 507 // Testing functionality for TestRunner --------------------------------- |
498 | 508 |
499 protected: | 509 protected: |
500 ~WebView() {} | 510 ~WebView() {} |
501 }; | 511 }; |
502 | 512 |
503 } // namespace blink | 513 } // namespace blink |
504 | 514 |
505 #endif | 515 #endif |
OLD | NEW |