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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.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: Build fix after rebase Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 virtual void didChangeWindowResizerRect() { } 232 virtual void didChangeWindowResizerRect() { }
233 233
234 // The page background color. Can be used for filling in areas without 234 // The page background color. Can be used for filling in areas without
235 // content. 235 // content.
236 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 236 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
237 237
238 // The currently open page popup, which are calendar and datalist pickers 238 // The currently open page popup, which are calendar and datalist pickers
239 // but not the select popup. 239 // but not the select popup.
240 virtual WebPagePopup* pagePopup() const { return 0; } 240 virtual WebPagePopup* pagePopup() const { return 0; }
241 241
242 // Notification about the top controls height. If the boolean is true, then
243 // the embedder shrunk the WebView size by the top controls height.
244 virtual void setTopControlsHeight(float height, bool topControlsShrinkLayout Size) { }
245
246 // Updates top controls constraints and current state. Allows embedder to 242 // Updates top controls constraints and current state. Allows embedder to
247 // control what are valid states for top controls and if it should animate. 243 // control what are valid states for top controls and if it should animate.
248 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 244 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
249 245
250 protected: 246 protected:
251 ~WebWidget() { } 247 ~WebWidget() { }
252 }; 248 };
253 249
254 } // namespace blink 250 } // namespace blink
255 251
256 #endif 252 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698