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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov
erride; | 510 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov
erride; |
511 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; | 511 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; |
512 | 512 |
513 TopControls& topControls(); | 513 TopControls& topControls(); |
514 // Called anytime top controls layout height or content offset have changed. | 514 // Called anytime top controls layout height or content offset have changed. |
515 void didUpdateTopControls(); | 515 void didUpdateTopControls(); |
516 | 516 |
517 void forceNextWebGLContextCreationToFail() override; | 517 void forceNextWebGLContextCreationToFail() override; |
518 void forceNextDrawingBufferCreationToFail() override; | 518 void forceNextDrawingBufferCreationToFail() override; |
| 519 void updateBatteryStatusForTesting(bool charging, double chargingTime, doubl
e dischargingTime, double level) override; |
| 520 void resetBatteryStatusForTesting() override; |
519 | 521 |
520 IntSize mainFrameSize(); | 522 IntSize mainFrameSize(); |
521 WebDisplayMode displayMode() const { return m_displayMode; } | 523 WebDisplayMode displayMode() const { return m_displayMode; } |
522 | 524 |
523 PageScaleConstraintsSet& pageScaleConstraintsSet() const; | 525 PageScaleConstraintsSet& pageScaleConstraintsSet() const; |
524 | 526 |
525 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 527 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
526 | 528 |
527 WebViewScheduler* scheduler() const { return m_scheduler.get(); } | 529 WebViewScheduler* scheduler() const { return m_scheduler.get(); } |
528 | 530 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 }; | 778 }; |
777 | 779 |
778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 780 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
779 // We have no ways to check if the specified WebView is an instance of | 781 // We have no ways to check if the specified WebView is an instance of |
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 782 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
782 | 784 |
783 } // namespace blink | 785 } // namespace blink |
784 | 786 |
785 #endif | 787 #endif |
OLD | NEW |