| 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 "public/platform/WebColor.h" | 36 #include "public/platform/WebColor.h" |
| 35 #include "public/platform/WebDisplayMode.h" | 37 #include "public/platform/WebDisplayMode.h" |
| 36 #include "public/platform/WebDragOperation.h" | 38 #include "public/platform/WebDragOperation.h" |
| 37 #include "public/platform/WebFocusType.h" | 39 #include "public/platform/WebFocusType.h" |
| 38 #include "public/platform/WebPageVisibilityState.h" | 40 #include "public/platform/WebPageVisibilityState.h" |
| 39 #include "public/platform/WebString.h" | 41 #include "public/platform/WebString.h" |
| 40 #include "public/platform/WebVector.h" | 42 #include "public/platform/WebVector.h" |
| 41 #include "WebWidget.h" | |
| 42 | 43 |
| 43 namespace gfx { | 44 namespace gfx { |
| 44 class ICCProfile; | 45 class ICCProfile; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| 48 | 49 |
| 49 class WebAXObject; | 50 class WebAXObject; |
| 50 class WebCredentialManagerClient; | 51 class WebCredentialManagerClient; |
| 51 class WebFrame; | 52 class WebFrame; |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // Accessibility ------------------------------------------------------- | 383 // Accessibility ------------------------------------------------------- |
| 383 | 384 |
| 384 // Returns the accessibility object for this view. | 385 // Returns the accessibility object for this view. |
| 385 virtual WebAXObject AccessibilityObject() = 0; | 386 virtual WebAXObject AccessibilityObject() = 0; |
| 386 | 387 |
| 387 // Context menu -------------------------------------------------------- | 388 // Context menu -------------------------------------------------------- |
| 388 | 389 |
| 389 virtual void PerformCustomContextMenuAction(unsigned action) = 0; | 390 virtual void PerformCustomContextMenuAction(unsigned action) = 0; |
| 390 | 391 |
| 391 // Shows a context menu for the currently focused element. | 392 // Shows a context menu for the currently focused element. |
| 392 virtual void ShowContextMenu() = 0; | 393 virtual void ShowContextMenu(WebMenuSourceType) = 0; |
| 393 | 394 |
| 394 // Notify that context menu has been closed. | 395 // Notify that context menu has been closed. |
| 395 virtual void DidCloseContextMenu() = 0; | 396 virtual void DidCloseContextMenu() = 0; |
| 396 | 397 |
| 397 // Popup menu ---------------------------------------------------------- | 398 // Popup menu ---------------------------------------------------------- |
| 398 | 399 |
| 399 // Sets whether select popup menus should be rendered by the browser. | 400 // Sets whether select popup menus should be rendered by the browser. |
| 400 BLINK_EXPORT static void SetUseExternalPopupMenus(bool); | 401 BLINK_EXPORT static void SetUseExternalPopupMenus(bool); |
| 401 | 402 |
| 402 // Hides any popup (suggestions, selects...) that might be showing. | 403 // Hides any popup (suggestions, selects...) that might be showing. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 // completed. | 492 // completed. |
| 492 WebWidget* GetWidget() { return this; } | 493 WebWidget* GetWidget() { return this; } |
| 493 | 494 |
| 494 protected: | 495 protected: |
| 495 ~WebView() {} | 496 ~WebView() {} |
| 496 }; | 497 }; |
| 497 | 498 |
| 498 } // namespace blink | 499 } // namespace blink |
| 499 | 500 |
| 500 #endif | 501 #endif |
| OLD | NEW |