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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 "WebMenuSourceType.h" | |
35 #include "WebWidget.h" | 34 #include "WebWidget.h" |
36 #include "public/platform/WebColor.h" | 35 #include "public/platform/WebColor.h" |
37 #include "public/platform/WebDisplayMode.h" | 36 #include "public/platform/WebDisplayMode.h" |
38 #include "public/platform/WebDragOperation.h" | 37 #include "public/platform/WebDragOperation.h" |
39 #include "public/platform/WebFocusType.h" | 38 #include "public/platform/WebFocusType.h" |
40 #include "public/platform/WebPageVisibilityState.h" | 39 #include "public/platform/WebPageVisibilityState.h" |
41 #include "public/platform/WebString.h" | 40 #include "public/platform/WebString.h" |
42 #include "public/platform/WebVector.h" | 41 #include "public/platform/WebVector.h" |
43 | 42 |
44 namespace gfx { | 43 namespace gfx { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 381 |
383 // Accessibility ------------------------------------------------------- | 382 // Accessibility ------------------------------------------------------- |
384 | 383 |
385 // Returns the accessibility object for this view. | 384 // Returns the accessibility object for this view. |
386 virtual WebAXObject AccessibilityObject() = 0; | 385 virtual WebAXObject AccessibilityObject() = 0; |
387 | 386 |
388 // Context menu -------------------------------------------------------- | 387 // Context menu -------------------------------------------------------- |
389 | 388 |
390 virtual void PerformCustomContextMenuAction(unsigned action) = 0; | 389 virtual void PerformCustomContextMenuAction(unsigned action) = 0; |
391 | 390 |
392 // Shows a context menu for the currently focused element. | |
393 virtual void ShowContextMenu(WebMenuSourceType) = 0; | |
394 | |
395 // Notify that context menu has been closed. | 391 // Notify that context menu has been closed. |
396 virtual void DidCloseContextMenu() = 0; | 392 virtual void DidCloseContextMenu() = 0; |
397 | 393 |
398 // Popup menu ---------------------------------------------------------- | 394 // Popup menu ---------------------------------------------------------- |
399 | 395 |
400 // Sets whether select popup menus should be rendered by the browser. | 396 // Sets whether select popup menus should be rendered by the browser. |
401 BLINK_EXPORT static void SetUseExternalPopupMenus(bool); | 397 BLINK_EXPORT static void SetUseExternalPopupMenus(bool); |
402 | 398 |
403 // Hides any popup (suggestions, selects...) that might be showing. | 399 // Hides any popup (suggestions, selects...) that might be showing. |
404 virtual void HidePopups() = 0; | 400 virtual void HidePopups() = 0; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // completed. | 488 // completed. |
493 WebWidget* GetWidget() { return this; } | 489 WebWidget* GetWidget() { return this; } |
494 | 490 |
495 protected: | 491 protected: |
496 ~WebView() {} | 492 ~WebView() {} |
497 }; | 493 }; |
498 | 494 |
499 } // namespace blink | 495 } // namespace blink |
500 | 496 |
501 #endif | 497 #endif |
OLD | NEW |