| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale
); | 169 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale
); |
| 170 virtual float minimumPageScaleFactor() const; | 170 virtual float minimumPageScaleFactor() const; |
| 171 virtual float maximumPageScaleFactor() const; | 171 virtual float maximumPageScaleFactor() const; |
| 172 | 172 |
| 173 virtual float deviceScaleFactor() const; | 173 virtual float deviceScaleFactor() const; |
| 174 virtual void setDeviceScaleFactor(float); | 174 virtual void setDeviceScaleFactor(float); |
| 175 virtual bool isFixedLayoutModeEnabled() const; | 175 virtual bool isFixedLayoutModeEnabled() const; |
| 176 virtual void enableFixedLayoutMode(bool enable); | 176 virtual void enableFixedLayoutMode(bool enable); |
| 177 virtual WebSize fixedLayoutSize() const; | 177 virtual WebSize fixedLayoutSize() const; |
| 178 virtual void setFixedLayoutSize(const WebSize&); | 178 virtual void setFixedLayoutSize(const WebSize&); |
| 179 virtual void enableAutoSizeMode( |
| 180 bool enable, |
| 181 const WebSize& minSize, |
| 182 const WebSize& maxSize); |
| 179 virtual void performMediaPlayerAction( | 183 virtual void performMediaPlayerAction( |
| 180 const WebMediaPlayerAction& action, | 184 const WebMediaPlayerAction& action, |
| 181 const WebPoint& location); | 185 const WebPoint& location); |
| 182 virtual void copyImageAt(const WebPoint& point); | 186 virtual void copyImageAt(const WebPoint& point); |
| 183 virtual void dragSourceEndedAt( | 187 virtual void dragSourceEndedAt( |
| 184 const WebPoint& clientPoint, | 188 const WebPoint& clientPoint, |
| 185 const WebPoint& screenPoint, | 189 const WebPoint& screenPoint, |
| 186 WebDragOperation operation); | 190 WebDragOperation operation); |
| 187 virtual void dragSourceMovedTo( | 191 virtual void dragSourceMovedTo( |
| 188 const WebPoint& clientPoint, | 192 const WebPoint& clientPoint, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 336 |
| 333 // Returns true if popup menus should be rendered by the browser, false if | 337 // Returns true if popup menus should be rendered by the browser, false if |
| 334 // they should be rendered by WebKit (which is the default). | 338 // they should be rendered by WebKit (which is the default). |
| 335 static bool useExternalPopupMenus(); | 339 static bool useExternalPopupMenus(); |
| 336 | 340 |
| 337 bool contextMenuAllowed() const | 341 bool contextMenuAllowed() const |
| 338 { | 342 { |
| 339 return m_contextMenuAllowed; | 343 return m_contextMenuAllowed; |
| 340 } | 344 } |
| 341 | 345 |
| 346 bool shouldAutoSize() const |
| 347 { |
| 348 return m_shouldAutoSize; |
| 349 } |
| 350 |
| 351 WebCore::IntSize minAutoSize() const |
| 352 { |
| 353 return m_minAutoSize; |
| 354 } |
| 355 |
| 356 WebCore::IntSize maxAutoSize() const |
| 357 { |
| 358 return m_maxAutoSize; |
| 359 } |
| 360 |
| 342 // Set the disposition for how this webview is to be initially shown. | 361 // Set the disposition for how this webview is to be initially shown. |
| 343 void setInitialNavigationPolicy(WebNavigationPolicy policy) | 362 void setInitialNavigationPolicy(WebNavigationPolicy policy) |
| 344 { | 363 { |
| 345 m_initialNavigationPolicy = policy; | 364 m_initialNavigationPolicy = policy; |
| 346 } | 365 } |
| 347 WebNavigationPolicy initialNavigationPolicy() const | 366 WebNavigationPolicy initialNavigationPolicy() const |
| 348 { | 367 { |
| 349 return m_initialNavigationPolicy; | 368 return m_initialNavigationPolicy; |
| 350 } | 369 } |
| 351 | 370 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 WebPermissionClient* m_permissionClient; | 510 WebPermissionClient* m_permissionClient; |
| 492 WebSpellCheckClient* m_spellCheckClient; | 511 WebSpellCheckClient* m_spellCheckClient; |
| 493 | 512 |
| 494 ChromeClientImpl m_chromeClientImpl; | 513 ChromeClientImpl m_chromeClientImpl; |
| 495 ContextMenuClientImpl m_contextMenuClientImpl; | 514 ContextMenuClientImpl m_contextMenuClientImpl; |
| 496 DragClientImpl m_dragClientImpl; | 515 DragClientImpl m_dragClientImpl; |
| 497 EditorClientImpl m_editorClientImpl; | 516 EditorClientImpl m_editorClientImpl; |
| 498 InspectorClientImpl m_inspectorClientImpl; | 517 InspectorClientImpl m_inspectorClientImpl; |
| 499 | 518 |
| 500 WebSize m_size; | 519 WebSize m_size; |
| 520 // If true, automatically resize the render view around its content. |
| 521 bool m_shouldAutoSize; |
| 522 // The lower bound on the size when autosizing. |
| 523 WebCore::IntSize m_minAutoSize; |
| 524 // The upper bound on the size when autosizing. |
| 525 WebCore::IntSize m_maxAutoSize; |
| 501 | 526 |
| 502 WebPoint m_lastMousePosition; | 527 WebPoint m_lastMousePosition; |
| 503 OwnPtr<WebCore::Page> m_page; | 528 OwnPtr<WebCore::Page> m_page; |
| 504 | 529 |
| 505 // This flag is set when a new navigation is detected. It is used to satisfy | 530 // This flag is set when a new navigation is detected. It is used to satisfy |
| 506 // the corresponding argument to WebFrameClient::didCommitProvisionalLoad. | 531 // the corresponding argument to WebFrameClient::didCommitProvisionalLoad. |
| 507 bool m_observedNewNavigation; | 532 bool m_observedNewNavigation; |
| 508 #ifndef NDEBUG | 533 #ifndef NDEBUG |
| 509 // Used to assert that the new navigation we observed is the same navigation | 534 // Used to assert that the new navigation we observed is the same navigation |
| 510 // when we make use of m_observedNewNavigation. | 535 // when we make use of m_observedNewNavigation. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 #endif | 661 #endif |
| 637 | 662 |
| 638 #if ENABLE(MEDIA_STREAM) | 663 #if ENABLE(MEDIA_STREAM) |
| 639 UserMediaClientImpl m_userMediaClientImpl; | 664 UserMediaClientImpl m_userMediaClientImpl; |
| 640 #endif | 665 #endif |
| 641 }; | 666 }; |
| 642 | 667 |
| 643 } // namespace WebKit | 668 } // namespace WebKit |
| 644 | 669 |
| 645 #endif | 670 #endif |
| OLD | NEW |