Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.h

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Fixed anchoring to check width too Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef WebViewFrameWidget_h 5 #ifndef WebViewFrameWidget_h
6 #define WebViewFrameWidget_h 6 #define WebViewFrameWidget_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "public/web/WebFrameWidget.h" 9 #include "public/web/WebFrameWidget.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
(...skipping 23 matching lines...) Expand all
34 class WebViewFrameWidget : public WebFrameWidget { 34 class WebViewFrameWidget : public WebFrameWidget {
35 WTF_MAKE_NONCOPYABLE(WebViewFrameWidget); 35 WTF_MAKE_NONCOPYABLE(WebViewFrameWidget);
36 public: 36 public:
37 explicit WebViewFrameWidget(WebWidgetClient*, WebViewImpl&, WebLocalFrameImp l&); 37 explicit WebViewFrameWidget(WebWidgetClient*, WebViewImpl&, WebLocalFrameImp l&);
38 virtual ~WebViewFrameWidget(); 38 virtual ~WebViewFrameWidget();
39 39
40 // WebFrameWidget overrides: 40 // WebFrameWidget overrides:
41 void close() override; 41 void close() override;
42 WebSize size() override; 42 WebSize size() override;
43 void resize(const WebSize&) override; 43 void resize(const WebSize&) override;
44 void resize(const WebSize&, float topControlsHeight, bool topControlsShrinkL ayoutViewportSize) override;
44 void resizeVisualViewport(const WebSize&) override; 45 void resizeVisualViewport(const WebSize&) override;
45 void didEnterFullScreen() override; 46 void didEnterFullScreen() override;
46 void didExitFullScreen() override; 47 void didExitFullScreen() override;
47 void beginFrame(double lastFrameTimeMonotonic) override; 48 void beginFrame(double lastFrameTimeMonotonic) override;
48 void updateAllLifecyclePhases() override; 49 void updateAllLifecyclePhases() override;
49 void paint(WebCanvas*, const WebRect& viewPort) override; 50 void paint(WebCanvas*, const WebRect& viewPort) override;
50 void paintCompositedDeprecated(WebCanvas*, const WebRect&) override; 51 void paintCompositedDeprecated(WebCanvas*, const WebRect&) override;
51 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; 52 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override;
52 void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*) overri de; 53 void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*) overri de;
53 void themeChanged() override; 54 void themeChanged() override;
(...skipping 28 matching lines...) Expand all
82 bool isAcceleratedCompositingActive() const override; 83 bool isAcceleratedCompositingActive() const override;
83 bool isWebView() const override { return false; } 84 bool isWebView() const override { return false; }
84 bool isPagePopup() const override { return false; } 85 bool isPagePopup() const override { return false; }
85 void willCloseLayerTreeView() override; 86 void willCloseLayerTreeView() override;
86 void didAcquirePointerLock() override; 87 void didAcquirePointerLock() override;
87 void didNotAcquirePointerLock() override; 88 void didNotAcquirePointerLock() override;
88 void didLosePointerLock() override; 89 void didLosePointerLock() override;
89 void didChangeWindowResizerRect() override; 90 void didChangeWindowResizerRect() override;
90 WebColor backgroundColor() const override; 91 WebColor backgroundColor() const override;
91 WebPagePopup* pagePopup() const override; 92 WebPagePopup* pagePopup() const override;
92 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride;
93 void updateTopControlsState(WebTopControlsState constraints, WebTopControlsS tate current, bool animate) override; 93 void updateTopControlsState(WebTopControlsState constraints, WebTopControlsS tate current, bool animate) override;
94 void setVisibilityState(WebPageVisibilityState, bool isInitialState) overrid e; 94 void setVisibilityState(WebPageVisibilityState, bool isInitialState) overrid e;
95 bool isTransparent() const override; 95 bool isTransparent() const override;
96 void setIsTransparent(bool) override; 96 void setIsTransparent(bool) override;
97 void setBaseBackgroundColor(WebColor) override; 97 void setBaseBackgroundColor(WebColor) override;
98 bool forSubframe() const { return false; } 98 bool forSubframe() const { return false; }
99 void scheduleAnimation() override; 99 void scheduleAnimation() override;
100 100
101 private: 101 private:
102 WebWidgetClient* m_client; 102 WebWidgetClient* m_client;
103 RefPtr<WebViewImpl> m_webView; 103 RefPtr<WebViewImpl> m_webView;
104 Persistent<WebLocalFrameImpl> m_mainFrame; 104 Persistent<WebLocalFrameImpl> m_mainFrame;
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // WebViewFrameWidget_h 109 #endif // WebViewFrameWidget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698