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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 , public PageWidgetEventHandler { | 84 , public PageWidgetEventHandler { |
85 public: | 85 public: |
86 static WebViewImpl* create(WebViewClient*); | 86 static WebViewImpl* create(WebViewClient*); |
87 | 87 |
88 // WebWidget methods: | 88 // WebWidget methods: |
89 virtual void close() OVERRIDE; | 89 virtual void close() OVERRIDE; |
90 virtual WebSize size() OVERRIDE; | 90 virtual WebSize size() OVERRIDE; |
91 virtual void willStartLiveResize() OVERRIDE; | 91 virtual void willStartLiveResize() OVERRIDE; |
92 virtual void resize(const WebSize&) OVERRIDE; | 92 virtual void resize(const WebSize&) OVERRIDE; |
93 virtual void resizePinchViewport(const WebSize&) OVERRIDE; | 93 virtual void resizePinchViewport(const WebSize&) OVERRIDE; |
94 virtual void setTopControlsContentOffset(float) OVERRIDE; | |
94 virtual void willEndLiveResize() OVERRIDE; | 95 virtual void willEndLiveResize() OVERRIDE; |
95 virtual void willEnterFullScreen() OVERRIDE; | 96 virtual void willEnterFullScreen() OVERRIDE; |
96 virtual void didEnterFullScreen() OVERRIDE; | 97 virtual void didEnterFullScreen() OVERRIDE; |
97 virtual void willExitFullScreen() OVERRIDE; | 98 virtual void willExitFullScreen() OVERRIDE; |
98 virtual void didExitFullScreen() OVERRIDE; | 99 virtual void didExitFullScreen() OVERRIDE; |
99 | 100 |
100 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE; | 101 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE; |
101 | 102 |
102 virtual void layout() OVERRIDE; | 103 virtual void layout() OVERRIDE; |
103 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; | 104 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; |
104 #if OS(ANDROID) | 105 #if OS(ANDROID) |
105 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) OVERRIDE; | 106 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) OVERRIDE; |
106 #endif | 107 #endif |
107 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) OVERRIDE; | 108 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) OVERRIDE; |
108 virtual bool isTrackingRepaints() const OVERRIDE; | 109 virtual bool isTrackingRepaints() const OVERRIDE; |
109 virtual void themeChanged() OVERRIDE; | 110 virtual void themeChanged() OVERRIDE; |
110 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 111 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
111 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; | 112 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; |
112 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; | 113 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; |
113 virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; | 114 virtual void applyViewportProperties(const WebSize&, float, float) OVERRIDE; |
aelias_OOO_until_Jul13
2014/09/03 19:28:42
Please provide names for the arguments since it's
bokan
2014/09/04 23:10:01
Done
| |
114 virtual void mouseCaptureLost() OVERRIDE; | 115 virtual void mouseCaptureLost() OVERRIDE; |
115 virtual void setFocus(bool enable) OVERRIDE; | 116 virtual void setFocus(bool enable) OVERRIDE; |
116 virtual bool setComposition( | 117 virtual bool setComposition( |
117 const WebString& text, | 118 const WebString& text, |
118 const WebVector<WebCompositionUnderline>& underlines, | 119 const WebVector<WebCompositionUnderline>& underlines, |
119 int selectionStart, | 120 int selectionStart, |
120 int selectionEnd) OVERRIDE; | 121 int selectionEnd) OVERRIDE; |
121 virtual bool confirmComposition() OVERRIDE; | 122 virtual bool confirmComposition() OVERRIDE; |
122 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE; | 123 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE; |
123 virtual bool confirmComposition(const WebString& text) OVERRIDE; | 124 virtual bool confirmComposition(const WebString& text) OVERRIDE; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
707 bool m_showFPSCounter; | 708 bool m_showFPSCounter; |
708 bool m_showPaintRects; | 709 bool m_showPaintRects; |
709 bool m_showDebugBorders; | 710 bool m_showDebugBorders; |
710 bool m_continuousPaintingEnabled; | 711 bool m_continuousPaintingEnabled; |
711 bool m_showScrollBottleneckRects; | 712 bool m_showScrollBottleneckRects; |
712 WebColor m_baseBackgroundColor; | 713 WebColor m_baseBackgroundColor; |
713 WebColor m_backgroundColorOverride; | 714 WebColor m_backgroundColorOverride; |
714 float m_zoomFactorOverride; | 715 float m_zoomFactorOverride; |
715 | 716 |
716 bool m_userGestureObserved; | 717 bool m_userGestureObserved; |
718 int m_topControlsLayoutHeight; | |
aelias_OOO_until_Jul13
2014/09/03 19:28:42
Unused for now, please remove it.
bokan
2014/09/04 23:10:01
Done.
| |
719 float m_topControlsContentOffset; | |
717 }; | 720 }; |
718 | 721 |
719 // We have no ways to check if the specified WebView is an instance of | 722 // We have no ways to check if the specified WebView is an instance of |
720 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 723 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
721 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 724 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
722 | 725 |
723 } // namespace blink | 726 } // namespace blink |
724 | 727 |
725 #endif | 728 #endif |
OLD | NEW |