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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.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: Override top controls resize() in classes that override resize() 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 , public WebFrameWidget 65 , public WebFrameWidget
66 , public PageWidgetEventHandler { 66 , public PageWidgetEventHandler {
67 public: 67 public:
68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); 68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*);
69 static WebFrameWidgetsSet& allInstances(); 69 static WebFrameWidgetsSet& allInstances();
70 70
71 // WebWidget functions: 71 // WebWidget functions:
72 void close() override; 72 void close() override;
73 WebSize size() override; 73 WebSize size() override;
74 void resize(const WebSize&) override; 74 void resize(const WebSize&) override;
75 void resize(const WebSize&, float topControlsHeight, bool topControlsShrinkL ayoutSize) override;
75 void resizeVisualViewport(const WebSize&) override; 76 void resizeVisualViewport(const WebSize&) override;
76 void didEnterFullScreen() override; 77 void didEnterFullScreen() override;
77 void didExitFullScreen() override; 78 void didExitFullScreen() override;
78 void beginFrame(double lastFrameTimeMonotonic) override; 79 void beginFrame(double lastFrameTimeMonotonic) override;
79 void updateAllLifecyclePhases() override; 80 void updateAllLifecyclePhases() override;
80 void paint(WebCanvas*, const WebRect&) override; 81 void paint(WebCanvas*, const WebRect&) override;
81 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; 82 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override;
82 void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*) overri de; 83 void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*) overri de;
83 void themeChanged() override; 84 void themeChanged() override;
84 WebInputEventResult handleInputEvent(const WebInputEvent&) override; 85 WebInputEventResult handleInputEvent(const WebInputEvent&) override;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #if ENABLE(OILPAN) 229 #if ENABLE(OILPAN)
229 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; 230 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
230 #endif 231 #endif
231 }; 232 };
232 233
233 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe()); 234 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe());
234 235
235 } // namespace blink 236 } // namespace blink
236 237
237 #endif 238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698